diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2013-01-04 18:09:35 -0600 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2013-01-04 18:09:35 -0600 |
commit | a83e74b37adc26afe4e69e59ed0092dafa63fc09 (patch) | |
tree | 5419dab639987b79738898cad8425656746d877e /src/arch/arm/decoder.cc | |
parent | 1945f9963d95cdd244a4540519f3d9d1b9597767 (diff) | |
download | gem5-a83e74b37adc26afe4e69e59ed0092dafa63fc09.tar.xz |
ARM: Keep a copy of the fpscr len and stride fields in the decoder.
Avoid reading them every instruction, and also eliminate the last use of the
thread context in the decoders.
Committed by: Nilay Vaish <nilay@cs.wisc.edu>
Diffstat (limited to 'src/arch/arm/decoder.cc')
-rw-r--r-- | src/arch/arm/decoder.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/arch/arm/decoder.cc b/src/arch/arm/decoder.cc index 4001f7597..b5a73d68b 100644 --- a/src/arch/arm/decoder.cc +++ b/src/arch/arm/decoder.cc @@ -113,9 +113,8 @@ Decoder::moreBytes(const PCState &pc, Addr fetchPC, MachInst inst) data = inst; offset = (fetchPC >= pc.instAddr()) ? 0 : pc.instAddr() - fetchPC; emi.thumb = pc.thumb(); - FPSCR fpscr = tc->readMiscReg(MISCREG_FPSCR); - emi.fpscrLen = fpscr.len; - emi.fpscrStride = fpscr.stride; + emi.fpscrLen = fpscrLen; + emi.fpscrStride = fpscrStride; outOfBytes = false; process(); |