intelmp.cc (10292:933dfb9d8279) intelmp.cc (11321:02e930db812d)
1/*
2 * Copyright (c) 2008 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 62 unchanged lines hidden (view full) ---

71template<class T>
72uint8_t
73writeOutField(PortProxy& proxy, Addr addr, T val)
74{
75 uint64_t guestVal = X86ISA::htog(val);
76 proxy.writeBlob(addr, (uint8_t *)(&guestVal), sizeof(T));
77
78 uint8_t checkSum = 0;
1/*
2 * Copyright (c) 2008 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 62 unchanged lines hidden (view full) ---

71template<class T>
72uint8_t
73writeOutField(PortProxy& proxy, Addr addr, T val)
74{
75 uint64_t guestVal = X86ISA::htog(val);
76 proxy.writeBlob(addr, (uint8_t *)(&guestVal), sizeof(T));
77
78 uint8_t checkSum = 0;
79 while(guestVal) {
79 while (guestVal) {
80 checkSum += guestVal;
81 guestVal >>= 8;
82 }
83 return checkSum;
84}
85
86uint8_t
87writeOutString(PortProxy& proxy, Addr addr, string str, int length)

--- 371 unchanged lines hidden ---
80 checkSum += guestVal;
81 guestVal >>= 8;
82 }
83 return checkSum;
84}
85
86uint8_t
87writeOutString(PortProxy& proxy, Addr addr, string str, int length)

--- 371 unchanged lines hidden ---