This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[SH][PATCH] sim memory size on windows
- From: Andrew STUBBS <andrew dot stubbs at st dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 09 Nov 2005 17:54:27 +0000
- Subject: [SH][PATCH] sim memory size on windows
Hi,
This is very simple patch which makes the SH simulator use the same
memory on Windows as it does on other platforms.
As far as I can tell the simulator is like this because, once upon a
time, Windows typically ran on low memory machines or without virtual
memory or something. Clearly this is no longer the case (not compared to
the size of the simulator anyway) and I can see no good reason why the
default should be any different to other machines.
The user may still override the setting via the 'target sim' command, of
course.
I don't know what 'GO32' refers to so I have left it alone.
Andrew Stubbs
2005-11-09 Andrew Stubbs <andrew.stubbs@st.com>
* interp.c (sim_memory_size): Use same amount of memory on Windows as
elsewhere.
Index: src/sim/sh/interp.c
===================================================================
--- src.orig/sim/sh/interp.c 2005-09-19 12:29:30.000000000 +0100
+++ src/sim/sh/interp.c 2005-11-02 12:26:20.000000000 +0000
@@ -853,7 +853,7 @@ do { \
#endif
-#if defined(__GO32__) || defined(_WIN32)
+#if defined(__GO32__)
int sim_memory_size = 19;
#else
int sim_memory_size = 24;