Skip to content

Commit

Permalink
Merge pull request #2017 from elicn/fix-sparc
Browse files Browse the repository at this point in the history
Fix SPARC I0-7 registers write
  • Loading branch information
wtdcode authored Sep 30, 2024
2 parents 35a6b14 + ff06b14 commit d9b66c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qemu/target/sparc/unicorn.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ uc_err reg_read(void *_env, int mode, unsigned int regid, void *value,
CHECK_REG_TYPE(uint32_t);
*(uint32_t *)value = env->regwptr[8 + regid - UC_SPARC_REG_L0];
} else if (regid >= UC_SPARC_REG_I0 && regid <= UC_SPARC_REG_I7) {
CHECK_REG_TYPE(uint32_t);
*(uint32_t *)value = env->regwptr[16 + regid - UC_SPARC_REG_I0];
} else {
switch (regid) {
Expand Down

0 comments on commit d9b66c4

Please sign in to comment.