Skip to content

Commit

Permalink
wip fixing portability problems
Browse files Browse the repository at this point in the history
  • Loading branch information
apparentlymart committed Nov 11, 2024
1 parent b389239 commit ed0d87c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qemu/target/riscv/unicorn.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ uc_err reg_read(void *_env, int mode, unsigned int regid, void *value,
{
CPURISCVState *env = _env;
uc_err ret = UC_ERR_ARG;
target_ulong priv_value;

if (regid >= UC_RISCV_REG_X0 && regid <= UC_RISCV_REG_X31) {
#ifdef TARGET_RISCV64
Expand Down Expand Up @@ -181,7 +182,6 @@ uc_err reg_read(void *_env, int mode, unsigned int regid, void *value,
#endif
break;
case UC_RISCV_REG_PRIV:
target_ulong priv_value;
ret = reg_read_priv(env, &priv_value);
if (ret != UC_ERR_OK) {
return ret;
Expand Down

0 comments on commit ed0d87c

Please sign in to comment.