diff options
| author | Frank Chang <frank.chang@sifive.com> | 2021-09-14 09:37:15 +0800 |
|---|---|---|
| committer | Alistair Francis <alistair.francis@wdc.com> | 2021-09-21 12:10:22 +1000 |
| commit | c6013547560c33068dca3368ca7cd74b13f1a780 (patch) | |
| tree | 7dfffc33d202017b38b518f74fb16a143c83c93a /linux-user/arm/cpu_loop.c | |
| parent | 758c07c9fca1ad9716820feb346cec0553968011 (diff) | |
| download | focaccia-qemu-c6013547560c33068dca3368ca7cd74b13f1a780.tar.gz focaccia-qemu-c6013547560c33068dca3368ca7cd74b13f1a780.zip | |
target/riscv: Backup/restore mstatus.SD bit when virtual register swapped
When virtual registers are swapped, mstatus.SD bit should also be backed up/restored. Otherwise, mstatus.SD bit will be incorrectly kept across the world switches. Signed-off-by: Frank Chang <frank.chang@sifive.com> Reviewed-by: Vincent Chen <vincent.chen@sifive.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-id: 20210914013717.881430-1-frank.chang@sifive.com [ Changes by AF: - Convert variable to a uint64_t to fix clang error ] Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'linux-user/arm/cpu_loop.c')
0 files changed, 0 insertions, 0 deletions