[PATCH v3 07/17] riscv: Maintain epc on misaligned emulation error
Nam Cao
namcao at linutronix.de
Thu Aug 6 01:38:51 PDT 2026
Charlie Jenkins <thecharlesjenkins at gmail.com> writes:
> Currently the epc is set to zero when there is a misaligned emulation
> error. This will print a misleading error message with the current epc
> value of zero instead of the epc value that triggered the emulation.
> Avoid setting epc to zero to maintain the state of epc.
>
> Signed-off-by: Charlie Jenkins <thecharlesjenkins at gmail.com>
I see no reason why epc must be set to zero, so:
Reviewed-by: Nam Cao <namcao at linutronix.de>
But to be sure, I add to CC: Damien Le Moal <damien.lemoal at wdc.com>
Damien, any reason that epc must be cleared?
Nam
More information about the kvm-riscv
mailing list