diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2006-03-12 00:40:29 -0500 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2006-03-12 00:40:29 -0500 |
commit | 38dd86ce7297b1ebecc5996c0c158990e14b1f02 (patch) | |
tree | 9185434074c988701deb766d93553a535f1c17f4 /cpu/o3 | |
parent | 1f5266e79d86fd6b82982c3f43dc2e5ef83a18ee (diff) | |
download | gem5-38dd86ce7297b1ebecc5996c0c158990e14b1f02.tar.xz |
Fix TranslatingPort access functions to:
- know nothing about Fault objects (as it should be)
- call fatal() by default on accesses to unmapped addrs
- provide "try" versions for callers that are prepared to handle failure
mem/translating_port.cc:
mem/translating_port.hh:
Memory system objects should not return Fault objects, just errors.
Half the time we don't check the return code anyway, so make
default version of the access functions call fatal().
Provide "try*" versions that return a bool for places where we
really are going to check the return code.
sim/syscall_emul.cc:
sim/syscall_emul.hh:
Need to use new "tryReadString" here since we actually check the return code.
--HG--
extra : convert_revision : 039737398ef183904dc382c05912ab96cd1d4a51
Diffstat (limited to 'cpu/o3')
0 files changed, 0 insertions, 0 deletions