diff options
author | LIU Zhiwei <zhiwei_liu@c-sky.com> | 2022-01-20 20:20:32 +0800 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2022-01-21 15:52:57 +1000 |
commit | 440544e1cff9877cdf17aae4ecfe775410b1eff2 (patch) | |
tree | b62889afe35f170e2adbbe6886532cdc5016d052 /qemu-nbd.c | |
parent | 40f0c2046c490ef4b8bed4ca628620ab8a2bdf87 (diff) | |
download | qemu-440544e1cff9877cdf17aae4ecfe775410b1eff2.zip qemu-440544e1cff9877cdf17aae4ecfe775410b1eff2.tar.gz qemu-440544e1cff9877cdf17aae4ecfe775410b1eff2.tar.bz2 |
target/riscv: Create xl field in env
Current xlen has been used in helper functions and many other places.
The computation of current xlen is not so trivial, so that we should
recompute it as little as possible.
Fortunately, xlen only changes in very seldom cases, such as exception,
misa write, mstatus write, cpu reset, migration load. So that we can only
recompute xlen in this places and cache it into CPURISCVState.
Signed-off-by: LIU Zhiwei <zhiwei_liu@c-sky.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20220120122050.41546-6-zhiwei_liu@c-sky.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'qemu-nbd.c')
0 files changed, 0 insertions, 0 deletions