aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorLIU Zhiwei <zhiwei_liu@c-sky.com>2022-01-20 20:20:32 +0800
committerAlistair Francis <alistair.francis@wdc.com>2022-01-21 15:52:57 +1000
commit440544e1cff9877cdf17aae4ecfe775410b1eff2 (patch)
treeb62889afe35f170e2adbbe6886532cdc5016d052 /.github
parent40f0c2046c490ef4b8bed4ca628620ab8a2bdf87 (diff)
downloadqemu-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 '.github')
0 files changed, 0 insertions, 0 deletions