This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] frv sim register initialization
- From: Dave Brolley <brolley at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 25 Sep 2003 17:49:57 -0400
- Subject: [patch] frv sim register initialization
I've committed the attached patch which initializes the registers on the
frv simulator earlier. This is because some other initialization uses
the register values.
Dave
2003-09-25 Dave Brolley <brolley@redhat.com>
* reset.c (frv_initialize): Call frv_register_control_init first.
Index: sim/frv/reset.c
===================================================================
RCS file: /cvs/src/src/sim/frv/reset.c,v
retrieving revision 1.1
diff -c -p -r1.1 reset.c
*** sim/frv/reset.c 29 Aug 2003 16:35:46 -0000 1.1
--- sim/frv/reset.c 25 Sep 2003 21:44:14 -0000
***************
*** 1,5 ****
/* frv simulator support code
! Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
Contributed by Red Hat.
This file is part of the GNU simulators.
--- 1,5 ----
/* frv simulator support code
! Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
Contributed by Red Hat.
This file is part of the GNU simulators.
*************** frv_initialize (SIM_CPU *current_cpu, SI
*** 36,41 ****
--- 36,45 ----
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. */
*************** frv_initialize (SIM_CPU *current_cpu, SI
*** 77,85 ****
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);
--- 81,86 ----