mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
target/riscv: Update CSR bits name for svadu extension
The Svadu specification updated the name of the *envcfg bit from HADE to ADUE. Signed-off-by: Weiwei Li <liweiwei@iscas.ac.cn> Signed-off-by: Junqiang Wang <wangjunqiang@iscas.ac.cn> Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Message-ID: <20230816141916.66898-1-liweiwei@iscas.ac.cn> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
9ff3140631
commit
ed67d63798
4 changed files with 15 additions and 15 deletions
|
@ -861,11 +861,11 @@ static int get_physical_address(CPURISCVState *env, hwaddr *physical,
|
|||
}
|
||||
|
||||
bool pbmte = env->menvcfg & MENVCFG_PBMTE;
|
||||
bool hade = env->menvcfg & MENVCFG_HADE;
|
||||
bool adue = env->menvcfg & MENVCFG_ADUE;
|
||||
|
||||
if (first_stage && two_stage && env->virt_enabled) {
|
||||
pbmte = pbmte && (env->henvcfg & HENVCFG_PBMTE);
|
||||
hade = hade && (env->henvcfg & HENVCFG_HADE);
|
||||
adue = adue && (env->henvcfg & HENVCFG_ADUE);
|
||||
}
|
||||
|
||||
int ptshift = (levels - 1) * ptidxbits;
|
||||
|
@ -1026,7 +1026,7 @@ restart:
|
|||
|
||||
/* Page table updates need to be atomic with MTTCG enabled */
|
||||
if (updated_pte != pte && !is_debug) {
|
||||
if (!hade) {
|
||||
if (!adue) {
|
||||
return TRANSLATE_FAIL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue