mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
target/hexagon: rename HEX_EXCP_*=>HEX_CAUSE_*
The values previously used for "HEX_EXCP_*" were the cause code definitions and not the event numbers. So in this commit, we update the names to reflect the cause codes. In HEX_EVENT_TRAP0's case, we add a new "HEX_EVENT_*" with the correct event number. Reviewed-by: Taylor Simpson <ltaylorsimpson@gmail.com> Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
This commit is contained in:
parent
0cb73cb5a0
commit
eed3f35879
5 changed files with 15 additions and 14 deletions
|
@ -42,7 +42,7 @@ void cpu_loop(CPUHexagonState *env)
|
|||
case EXCP_INTERRUPT:
|
||||
/* just indicate that signals should be handled asap */
|
||||
break;
|
||||
case HEX_EXCP_TRAP0:
|
||||
case HEX_EVENT_TRAP0:
|
||||
syscallnum = env->gpr[6];
|
||||
env->gpr[HEX_REG_PC] += 4;
|
||||
ret = do_syscall(env,
|
||||
|
@ -60,7 +60,7 @@ void cpu_loop(CPUHexagonState *env)
|
|||
env->gpr[0] = ret;
|
||||
}
|
||||
break;
|
||||
case HEX_EXCP_PC_NOT_ALIGNED:
|
||||
case HEX_CAUSE_PC_NOT_ALIGNED:
|
||||
force_sig_fault(TARGET_SIGBUS, TARGET_BUS_ADRALN,
|
||||
env->gpr[HEX_REG_R31]);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue