arch-riscv: Fix illegal instruction error message

Previously, the reason for the fault was not printed to the output.

Change-Id: I931b0de96fbb241f24ba69ad7e84d5d1c9db9e60
Signed-off-by: Hoa Nguyen <hoanguyen@ucdavis.edu>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/48923
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Ayaz Akram <yazakram@ucdavis.edu>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Hoa Nguyen
2021-07-30 15:44:31 -07:00
parent 636d0c3745
commit 8dffadf4e4

View File

@@ -166,7 +166,8 @@ class IllegalInstFault : public InstFault
public:
IllegalInstFault(std::string r, const ExtMachInst inst)
: InstFault("Illegal instruction", inst)
: InstFault("Illegal instruction", inst),
reason(r)
{}
void invokeSE(ThreadContext *tc, const StaticInstPtr &inst) override;