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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user