Matt Sinclair has uploaded a new patch set (#2). (
https://gem5-review.googlesource.com/10241 )
Change subject: arch-x86, arch-power: fix calls to bits and insertBits
......................................................................
arch-x86, arch-power: fix calls to bits and insertBits
The bits and insertBits assume the first bit is the larger bit and the last
bit is the smaller bit. This commit fixes several X86 and Power calls to
these functions that incorrectly assumed that first was the smaller bit.
To prevent this from happening in the future, I have added asserts in bits
and insertBits to make sure the number of bits isn't negative.
Change-Id: I2b5354d1b9ca66e3436c4a72042416a6ce6dec01
---
M src/arch/power/isa/decoder.isa
M src/arch/x86/isa.cc
M src/base/bitfield.hh
3 files changed, 7 insertions(+), 5 deletions(-)
--
To view, visit https://gem5-review.googlesource.com/10241
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I2b5354d1b9ca66e3436c4a72042416a6ce6dec01
Gerrit-Change-Number: 10241
Gerrit-PatchSet: 2
Gerrit-Owner: Matt Sinclair <mattdsincl...@gmail.com>
Gerrit-MessageType: newpatchset
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev