mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
sim: delete dead current_state globals
The global current_state handle to the current simulator state is a design idea that was half implemented, but never really cleaned up. The point was to have a global variable pointing to the state so that funcs could more quickly & easily access the state anywhere. We've instead moved in the direction of passing state around everywhere and don't have any intention of moving back. I also can't find any references to gdb using this variable, or to cgen related "dump_regs" functions, both of which were used in the comments related to this code.
This commit is contained in:
@ -105,7 +105,7 @@ frv_term (SIM_DESC sd)
|
||||
then turn it off again. This is the only place we can currently gain
|
||||
control to do this. */
|
||||
if (frv_interrupt_state.timer.enabled && ! frv_save_profile_model_p)
|
||||
sim_profile_set_option (current_state, "-model", PROFILE_MODEL_IDX, "0");
|
||||
sim_profile_set_option (sd, "-model", PROFILE_MODEL_IDX, "0");
|
||||
}
|
||||
|
||||
/* Perform a power on reset. */
|
||||
|
Reference in New Issue
Block a user