diff options
author | Daniel Henrique Barboza <dbarboza@ventanamicro.com> | 2023-02-22 15:51:59 -0300 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2023-03-01 13:47:10 -0800 |
commit | cdfb290569fc80e9fb07c86c6de8ae8068fba000 (patch) | |
tree | df384ca6254f964bb8ca4c856c249198165205a6 /target/riscv/machine.c | |
parent | 54bd9b6ec3d67d3825258ef1fc3cec8f9679bdd5 (diff) | |
download | qemu-cdfb290569fc80e9fb07c86c6de8ae8068fba000.zip qemu-cdfb290569fc80e9fb07c86c6de8ae8068fba000.tar.gz qemu-cdfb290569fc80e9fb07c86c6de8ae8068fba000.tar.bz2 |
target/riscv: remove RISCV_FEATURE_DEBUG
RISCV_FEATURE_DEBUG will always follow the value defined by
cpu->cfg.debug flag. Read the flag instead.
Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Weiwei Li <liweiwei@iscas.ac.cn>
Reviewed-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
Message-ID: <20230222185205.355361-5-dbarboza@ventanamicro.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'target/riscv/machine.c')
-rw-r--r-- | target/riscv/machine.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/target/riscv/machine.c b/target/riscv/machine.c index c6ce318..4634968 100644 --- a/target/riscv/machine.c +++ b/target/riscv/machine.c @@ -226,9 +226,8 @@ static const VMStateDescription vmstate_kvmtimer = { static bool debug_needed(void *opaque) { RISCVCPU *cpu = opaque; - CPURISCVState *env = &cpu->env; - return riscv_feature(env, RISCV_FEATURE_DEBUG); + return cpu->cfg.debug; } static int debug_post_load(void *opaque, int version_id) |