arch-riscv: Fix bug in serialize and unserialize of Interrutps
authorIanJiangICT <ianjiang.ict@gmail.com>
Wed, 6 Nov 2019 14:00:03 +0000 (22:00 +0800)
committerIan Jiang <ianjiang.ict@gmail.com>
Fri, 22 Nov 2019 09:13:08 +0000 (09:13 +0000)
commit0b39303f1c4dae8cb933e3eeac1a7e4be0cfe3ce
tree1ecad2bc85bbe4d72b5beb39dd8ab6ecede5dbb2
parent80283488ff763fbe1a6e82109ea74c7c5a898527
arch-riscv: Fix bug in serialize and unserialize of Interrutps

When serialize and unserialize an variable, the parameters passed to
SERIALIZE_SCALAR() and UNSERIALIZE_SCALAR() must be the same and should be a
general variable name. If not, the expected item would not be found with
UNSERIALIZE_SCALAR() and a fatal error would be introduced.
This patch fix the bug in class Interrupts of RISCV.

Change-Id: I7dd7ab6805651149304959bdf7ee9f3be9d9eaff
Signed-off-by: Ian Jiang <ianjiang.ict@gmail.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22643
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Alec Roelke <alec.roelke@gmail.com>
Maintainer: Alec Roelke <alec.roelke@gmail.com>
src/arch/riscv/interrupts.hh