• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisióne65b4ac0f7d2f05e249eababeb7eaefcecb9310f (tree)
Tiempo2015-11-21 03:06:11
AutorYoshinori Sato <ysato@sa76...>
CommiterYoshinori Sato

Log Message

Conver signal number

Cambiar Resumen

Diferencia incremental

--- a/sim/h8300/compile.c
+++ b/sim/h8300/compile.c
@@ -36,10 +36,6 @@
3636 #include "sys/types.h"
3737 #include "sim-options.h"
3838
39-#ifndef SIGTRAP
40-# define SIGTRAP 5
41-#endif
42-
4339 int debug;
4440 int h8300_interrupt_mode;
4541
@@ -572,7 +568,7 @@ lvalue (SIM_DESC sd, int x, int rn, unsigned int *val)
572568 *val = X (OP_MEM, SP);
573569 break;
574570 default:
575- sim_engine_set_run_state (sd, sim_stopped, SIGSEGV);
571+ sim_engine_set_run_state (sd, sim_stopped, SIM_SIGSEGV);
576572 return -1;
577573 }
578574 return 0;
@@ -1569,7 +1565,7 @@ fetch_1 (SIM_DESC sd, ea_type *arg, int *val, int twice)
15691565
15701566 case X (OP_MEM, SB): /* Why isn't this implemented? */
15711567 default:
1572- sim_engine_set_run_state (sd, sim_stopped, SIGSEGV);
1568+ sim_engine_set_run_state (sd, sim_stopped, SIM_SIGSEGV);
15731569 return -1;
15741570 }
15751571 return 0; /* Success. */
@@ -1778,7 +1774,7 @@ store_1 (SIM_DESC sd, ea_type *arg, int n, int twice)
17781774 case X (OP_MEM, SW): /* Why isn't this implemented? */
17791775 case X (OP_MEM, SL): /* Why isn't this implemented? */
17801776 default:
1781- sim_engine_set_run_state (sd, sim_stopped, SIGSEGV);
1777+ sim_engine_set_run_state (sd, sim_stopped, SIM_SIGSEGV);
17821778 return -1;
17831779 }
17841780 return 0;
@@ -2038,7 +2034,7 @@ sim_resume (SIM_DESC sd, int step, int siggnal)
20382034
20392035 if (step)
20402036 {
2041- sim_engine_set_run_state (sd, sim_stopped, SIGTRAP);
2037+ sim_engine_set_run_state (sd, sim_stopped, SIM_SIGTRAP);
20422038 }
20432039 else
20442040 {
@@ -2050,7 +2046,7 @@ sim_resume (SIM_DESC sd, int step, int siggnal)
20502046 /* The PC should never be odd. */
20512047 if (pc & 0x1)
20522048 {
2053- sim_engine_set_run_state (sd, sim_stopped, SIGBUS);
2049+ sim_engine_set_run_state (sd, sim_stopped, SIM_SIGBUS);
20542050 return;
20552051 }
20562052
@@ -3754,7 +3750,7 @@ sim_resume (SIM_DESC sd, int step, int siggnal)
37543750 goto end;
37553751
37563752 case O (O_ILL, SB): /* illegal */
3757- sim_engine_set_run_state (sd, sim_stopped, SIGILL);
3753+ sim_engine_set_run_state (sd, sim_stopped, SIM_SIGILL);
37583754 goto end;
37593755
37603756 case O (O_SLEEP, SN): /* sleep */
@@ -3780,7 +3776,7 @@ sim_resume (SIM_DESC sd, int step, int siggnal)
37803776 else
37813777 {
37823778 /* Treat it as a sigtrap. */
3783- sim_engine_set_run_state (sd, sim_stopped, SIGTRAP);
3779+ sim_engine_set_run_state (sd, sim_stopped, SIM_SIGTRAP);
37843780 }
37853781 #else
37863782 else
@@ -3798,7 +3794,7 @@ sim_resume (SIM_DESC sd, int step, int siggnal)
37983794 }
37993795
38003796 case O (O_BPT, SN):
3801- sim_engine_set_run_state (sd, sim_stopped, SIGTRAP);
3797+ sim_engine_set_run_state (sd, sim_stopped, SIM_SIGTRAP);
38023798 goto end;
38033799
38043800 case O (O_BSETEQ, SB):
@@ -4471,14 +4467,14 @@ sim_resume (SIM_DESC sd, int step, int siggnal)
44714467
44724468 default:
44734469 illegal:
4474- sim_engine_set_run_state (sd, sim_stopped, SIGILL);
4470+ sim_engine_set_run_state (sd, sim_stopped, SIM_SIGILL);
44754471 goto end;
44764472
44774473 }
44784474
44794475 (*sim_callback->printf_filtered) (sim_callback,
44804476 "sim_resume: internal error.\n");
4481- sim_engine_set_run_state (sd, sim_stopped, SIGILL);
4477+ sim_engine_set_run_state (sd, sim_stopped, SIM_SIGILL);
44824478 goto end;
44834479
44844480 setc: