MemoryController: guestToHost should not be part of the abstract iface

Not all backends have their memory mapped to a Fail*-accessible address.
Especially hardware targets can only be accessed indirectly.

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1611 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
hsc
2012-09-11 17:10:08 +00:00
parent e24099d4a8
commit 4f18dd945e
3 changed files with 1 additions and 13 deletions

View File

@ -60,12 +60,6 @@ public:
* @param src Pointer to data to be copied.
*/
virtual void setBytes(guest_address_t addr, size_t cnt, void const *src) = 0;
/**
* Transforms the guest address \a addr to a host address.
* @param addr The guest address to be transformed
* @return the transformed (host) address or \c ADDR_INV on errors
*/
virtual host_address_t guestToHost(guest_address_t addr) = 0;
};
} // end-of-namespace: fail

View File

@ -82,7 +82,7 @@ public:
setByte(addr + i, s[i]);
}
/**
* Transforms the guest address \a addr to a host address.
* Transforms the guest address \a addr to a host address. Bochs specific.
* @param addr The (logical) guest address to be transformed
* @return the transformed (host) address or \c ADDR_INV on errors
*/

View File

@ -60,12 +60,6 @@ public:
* @param src Pointer to data to be copied.
*/
void setBytes(guest_address_t addr, size_t cnt, void const *src) { }
/**
* Transforms the guest address \a addr to a host address.
* @param addr The (logical) guest address to be transformed
* @return the transformed (host) address or \c ADDR_INV on errors
*/
host_address_t guestToHost(guest_address_t addr) { return 0; }
};
} // end-of-namespace: fail