gem5/src/arch/alpha/isa
Steve Reinhardt 1b6355c895 cpu. arch: add initiateMemRead() to ExecContext interface
For historical reasons, the ExecContext interface had a single
function, readMem(), that did two different things depending on
whether the ExecContext supported atomic memory mode (i.e.,
AtomicSimpleCPU) or timing memory mode (all the other models).
In the former case, it actually performed a memory read; in the
latter case, it merely initiated a read access, and the read
completion did not happen until later when a response packet
arrived from the memory system.

This led to some confusing things, including timing accesses
being required to provide a pointer for the return data even
though that pointer was only used in atomic mode.

This patch splits this interface, adding a new initiateMemRead()
function to the ExecContext interface to replace the timing-mode
use of readMem().

For consistency and clarity, the readMemTiming() helper function
in the ISA definitions is renamed to initiateMemRead() as well.
For x86, where the access size is passed in explicitly, we can
also get rid of the data parameter at this level.  For other ISAs,
where the access size is determined from the type of the data
parameter, we have to keep the parameter for that purpose.
2016-01-17 18:27:46 -08:00
..
branch.isa scons: Add warning for overloaded virtual functions 2013-02-19 05:56:06 -05:00
decoder.isa pseudo inst,util: Add optional key to initparam pseudo instruction 2016-01-07 16:33:47 -06:00
fp.isa arch: Use shared_ptr for all Faults 2014-10-16 05:49:51 -04:00
int.isa ISA parser: Use '_' instead of '.' to delimit type modifiers on operands. 2011-09-26 23:48:54 -07:00
main.isa arch: teach ISA parser how to split code across files 2014-05-09 18:58:47 -04:00
mem.isa cpu. arch: add initiateMemRead() to ExecContext interface 2016-01-17 18:27:46 -08:00
opcdec.isa arch: Use shared_ptr for all Faults 2014-10-16 05:49:51 -04:00
pal.isa mem, alpha: Move Alpha-specific request flags 2015-05-05 03:22:31 -04:00
unimp.isa arch: Use shared_ptr for all Faults 2014-10-16 05:49:51 -04:00
unknown.isa arch: Use shared_ptr for all Faults 2014-10-16 05:49:51 -04:00
util.isa Updated Authors from bk prs info 2006-05-31 19:26:56 -04:00