diff options
author | Kirill Radkin <kirill.radkin@syntacore.com> | 2023-10-18 18:01:44 +0300 |
---|---|---|
committer | Kirill Radkin <kirill.radkin@syntacore.com> | 2023-10-23 18:56:40 +0300 |
commit | 109772012a206f3c51ae815530b0aba5e031a6ea (patch) | |
tree | 4efe87a313ace486e3112cfafab05853d29594a1 | |
parent | aad90d89897f1fbec9aaace4684c189423d096fd (diff) | |
download | riscv-openocd-109772012a206f3c51ae815530b0aba5e031a6ea.zip riscv-openocd-109772012a206f3c51ae815530b0aba5e031a6ea.tar.gz riscv-openocd-109772012a206f3c51ae815530b0aba5e031a6ea.tar.bz2 |
hgatp_mode in riscv_virt2phys_v defined by vsatp value
Replace `vsatp` with `hgatp` (how it should be)
Change-Id: Ie548467b06d1fb266ccc56cbec1aff8d9f435973
-rw-r--r-- | src/target/riscv/riscv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c index 1a2f35e..e3f99cd 100644 --- a/src/target/riscv/riscv.c +++ b/src/target/riscv/riscv.c @@ -2297,7 +2297,7 @@ static int riscv_virt2phys_v(struct target *target, target_addr_t virtual, targe LOG_TARGET_ERROR(target, "Failed to read hgatp register."); return ERROR_FAIL; } - int hgatp_mode = get_field(vsatp, RISCV_HGATP_MODE(xlen)); + int hgatp_mode = get_field(hgatp, RISCV_HGATP_MODE(xlen)); LOG_TARGET_DEBUG(target, "G-stage translation mode: %d", hgatp_mode); const virt2phys_info_t *vsatp_info; |