aboutsummaryrefslogtreecommitdiff
path: root/devel/i386-rtems-gdb
diff options
context:
space:
mode:
authorJames E. Housley <jeh@FreeBSD.org>2004-02-21 00:44:46 +0000
committerJames E. Housley <jeh@FreeBSD.org>2004-02-21 00:44:46 +0000
commitf104f08d43da999926a731aa1f2c9f312b64e37e (patch)
treea6fca0040ddf48fa6578ae77394780b29d480941 /devel/i386-rtems-gdb
parent7502d0a02ade12ae9bd3b891b6e185b8be16bd64 (diff)
downloadports-f104f08d43da999926a731aa1f2c9f312b64e37e.tar.gz
ports-f104f08d43da999926a731aa1f2c9f312b64e37e.zip
This patch get mips building again on 5.2
Notes
Notes: svn path=/head/; revision=101548
Diffstat (limited to 'devel/i386-rtems-gdb')
-rw-r--r--devel/i386-rtems-gdb/files/patch-sim::igen::gen-engine.c62
1 files changed, 62 insertions, 0 deletions
diff --git a/devel/i386-rtems-gdb/files/patch-sim::igen::gen-engine.c b/devel/i386-rtems-gdb/files/patch-sim::igen::gen-engine.c
new file mode 100644
index 000000000000..d61b1e8770e3
--- /dev/null
+++ b/devel/i386-rtems-gdb/files/patch-sim::igen::gen-engine.c
@@ -0,0 +1,62 @@
+--- sim/igen/gen-engine.c.orig Fri Feb 20 19:21:21 2004
++++ sim/igen/gen-engine.c Fri Feb 20 19:22:13 2004
+@@ -98,21 +98,21 @@
+ if (!options.gen.smp)
+ {
+
+- lf_putstr (file, "
+-/* CASE 1: NO SMP (with or with out instruction cache).
+-
+-In this case, we can take advantage of the fact that the current
+-instruction address (CIA) does not need to be read from / written to
+-the CPU object after the execution of an instruction.
+-
+-Instead, CIA is only saved when the main loop exits. This occures
+-when either sim_engine_halt or sim_engine_restart is called. Both of
+-these functions save the current instruction address before halting /
+-restarting the simulator.
+-
+-As a variation, there may also be support for an instruction cracking
+-cache. */
+-
++ lf_putstr (file, "\
++/* CASE 1: NO SMP (with or with out instruction cache).\
++\
++In this case, we can take advantage of the fact that the current\
++instruction address (CIA) does not need to be read from / written to\
++the CPU object after the execution of an instruction.\
++\
++Instead, CIA is only saved when the main loop exits. This occures\
++when either sim_engine_halt or sim_engine_restart is called. Both of\
++these functions save the current instruction address before halting /\
++restarting the simulator.\
++\
++As a variation, there may also be support for an instruction cracking\
++cache. */\
++\
+ ");
+
+ lf_putstr (file, "\n");
+@@ -215,14 +215,14 @@
+ if (options.gen.smp)
+ {
+
+- lf_putstr (file, "
+-/* CASE 2: SMP (With or without ICACHE)
+-
+-The complexity here comes from needing to correctly halt the simulator
+-when it is aborted. For instance, if cpu0 requests a restart then
+-cpu1 will normally be the next cpu that is run. Cpu0 being restarted
+-after all the other CPU's and the event queue have been processed */
+-
++ lf_putstr (file, "\
++/* CASE 2: SMP (With or without ICACHE)\
++\
++The complexity here comes from needing to correctly halt the simulator\
++when it is aborted. For instance, if cpu0 requests a restart then\
++cpu1 will normally be the next cpu that is run. Cpu0 being restarted\
++after all the other CPU's and the event queue have been processed */\
++\
+ ");
+
+ lf_putstr (file, "\n");