diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-06-19 18:17:34 +0000 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-06-19 18:17:34 +0000 |
commit | ea70e6d6daee29e7a4780d4b48f8140220ee2576 (patch) | |
tree | 3a494cf9de26a8319acfa6087186d03ad5bafb1b /src/arch/sparc | |
parent | d49649279312fe8d05c27a91f94992d8d584c35b (diff) | |
download | gem5-ea70e6d6daee29e7a4780d4b48f8140220ee2576.tar.xz |
Make branches work by repopulating the predecoder every time through. This is probably fine as far as the predecoder goes, but the simple cpu might want to not refetch something it already has. That reintroduces the self modifying code problem though.
--HG--
extra : convert_revision : 802197e65f8dc1ad657c6b346091e03cb563b0c0
Diffstat (limited to 'src/arch/sparc')
-rw-r--r-- | src/arch/sparc/predecoder.hh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/arch/sparc/predecoder.hh b/src/arch/sparc/predecoder.hh index 38d8fd1a2..d990c3256 100644 --- a/src/arch/sparc/predecoder.hh +++ b/src/arch/sparc/predecoder.hh @@ -67,10 +67,8 @@ namespace SparcISA //Use this to give data to the predecoder. This should be used //when there is control flow. - void moreBytes(Addr pc, Addr fetchPC, Addr off, MachInst inst) + void moreBytes(Addr pc, Addr fetchPC, MachInst inst) { - assert(off == 0); - emi = inst; //The I bit, bit 13, is used to figure out where the ASI //should come from. Use that in the ExtMachInst. This is |