• 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

Revisionc3a6afca56427ce606cdc8e8e9f0ffbc1e9fd6cd (tree)
Time2015-11-21 03:06:53
AuthorYoshinori Sato <ysato@sa76...>
CommiterYoshinori Sato

Log Message

Use generic sim functions

Change Summary

Incremental Difference

--- a/sim/h8300/compile.c
+++ b/sim/h8300/compile.c
@@ -2029,6 +2029,8 @@ sim_resume (SIM_DESC sd, int step, int siggnal)
20292029 enum sim_stop reason;
20302030 int sigrc;
20312031 int vector;
2032+ sim_engine *engine = STATE_ENGINE (sd);
2033+ jmp_buf buf;
20322034
20332035 init_pointers (sd);
20342036
@@ -2062,6 +2064,10 @@ sim_resume (SIM_DESC sd, int step, int siggnal)
20622064 oldmask = h8_get_mask (sd);
20632065 if (!h8300hmode || h8300_normal_mode)
20642066 h8_set_mask (sd, 0xffff);
2067+ sim_module_resume (sd);
2068+ engine->jmpbuf = &buf;
2069+ if (setjmp (buf) == sim_engine_halt_jmpval)
2070+ goto quit;
20652071 do
20662072 {
20672073 unsigned short cidx;
@@ -4690,12 +4696,13 @@ sim_resume (SIM_DESC sd, int step, int siggnal)
46904696 if (--poll_count < 0)
46914697 {
46924698 poll_count = POLL_QUIT_INTERVAL;
4693- if ((*sim_callback->poll_quit) != NULL
4694- && (*sim_callback->poll_quit) (sim_callback))
4695- sim_engine_set_run_state (sd, sim_stopped, SIGINT);
4699+ if (sim_events_tick(sd))
4700+ sim_events_process (sd);
46964701 }
46974702 sim_engine_get_run_state (sd, &reason, &sigrc);
46984703 } while (reason == sim_running);
4704+ quit:
4705+ sim_module_suspend (sd);
46994706
47004707 h8_set_ticks (sd, h8_get_ticks (sd) + get_now () - tick_start);
47014708 h8_set_cycles (sd, h8_get_cycles (sd) + cycles);