diff options
author | Dave Brolley <brolley@redhat.com> | 2003-09-25 21:45:45 +0000 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2003-09-25 21:45:45 +0000 |
commit | e35b0d51c49d71dcd8bffa5d8f82ec75f67f8918 (patch) | |
tree | 16958fb6c3c05796b509c37244fbd7433846a35f /sim | |
parent | 4572f5481f7faf42ea49da417b1c426e5fccb344 (diff) | |
download | gdb-e35b0d51c49d71dcd8bffa5d8f82ec75f67f8918.tar.gz |
2003-09-25 Dave Brolley <brolley@redhat.com>
* reset.c (frv_initialize): Call frv_register_control_init first.
Diffstat (limited to 'sim')
-rw-r--r-- | sim/frv/ChangeLog | 4 | ||||
-rw-r--r-- | sim/frv/reset.c | 9 |
2 files changed, 9 insertions, 4 deletions
diff --git a/sim/frv/ChangeLog b/sim/frv/ChangeLog index ff45fb13062..277d6f8b09f 100644 --- a/sim/frv/ChangeLog +++ b/sim/frv/ChangeLog @@ -1,3 +1,7 @@ +2003-09-25 Dave Brolley <brolley@redhat.com> + + * reset.c (frv_initialize): Call frv_register_control_init first. + 2003-09-24 Dave Brolley <brolley@redhat.com> * profile.h (update_FR_ptime): New prototype. diff --git a/sim/frv/reset.c b/sim/frv/reset.c index 51c29fe754e..070a4312272 100644 --- a/sim/frv/reset.c +++ b/sim/frv/reset.c @@ -1,5 +1,5 @@ /* frv simulator support code - Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. + Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc. Contributed by Red Hat. This file is part of the GNU simulators. @@ -36,6 +36,10 @@ frv_initialize (SIM_CPU *current_cpu, SIM_DESC sd) int data_cache_enabled = CACHE_INITIALIZED (data_cache); USI hsr0; + /* Initialize the register control information first since some of the + register values are used in further configuration. */ + frv_register_control_init (current_cpu); + /* We need to ensure that the caches are initialized even if they are not initially enabled (via commandline) because they can be enabled by software. */ @@ -78,9 +82,6 @@ frv_initialize (SIM_CPU *current_cpu, SIM_DESC sd) cgen_init_accurate_fpu (current_cpu, CGEN_CPU_FPU (current_cpu), frvbf_fpu_error); - /* Initialize the register control information. */ - frv_register_control_init (current_cpu); - /* Now perform power-on reset. */ frv_power_on_reset (current_cpu); |