From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25668 invoked by alias); 9 Nov 2005 17:56:56 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 25654 invoked by uid 22791); 9 Nov 2005 17:56:52 -0000 Received: from lon-del-03.spheriq.net (HELO lon-del-03.spheriq.net) (195.46.50.99) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 09 Nov 2005 17:56:52 +0000 Received: from lon-out-01.spheriq.net ([195.46.50.129]) by lon-del-03.spheriq.net with ESMTP id jA9Huoop029426 for ; Wed, 9 Nov 2005 17:56:50 GMT Received: from lon-cus-02.spheriq.net (lon-cus-02.spheriq.net [195.46.50.38]) by lon-out-01.spheriq.net with ESMTP id jA9HunQF031923 for ; Wed, 9 Nov 2005 17:56:49 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by lon-cus-02.spheriq.net with ESMTP id jA9Humkt027913 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Wed, 9 Nov 2005 17:56:49 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 1C4B6DA41 for ; Wed, 9 Nov 2005 17:56:48 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 60012) id C402C4732C; Wed, 9 Nov 2005 17:59:43 +0000 (GMT) Received: from zeta.dmz-eu.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 8723E75995 for ; Wed, 9 Nov 2005 17:59:43 +0000 (UTC) Received: from mail1.bri.st.com (mail1.bri.st.com [164.129.8.218]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id A252E47323 for ; Wed, 9 Nov 2005 17:59:42 +0000 (GMT) Received: from [164.129.15.13] (terrorhawk.bri.st.com [164.129.15.13]) by mail1.bri.st.com (MOS 3.5.8-GR) with ESMTP id CGQ01067 (AUTH "andrew stubbs"); Wed, 9 Nov 2005 17:56:44 GMT Message-ID: <437237D3.8050208@st.com> Date: Wed, 09 Nov 2005 19:25:00 -0000 From: Andrew STUBBS User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [SH][PATCH] sim memory size on windows Content-Type: multipart/mixed; boundary="------------030206010800010801080900" X-O-Spoofed: Not Scanned X-O-General-Status: No X-O-Spam1-Status: Not Scanned X-O-Spam2-Status: Not Scanned X-O-URL-Status: Not Scanned X-O-Virus1-Status: No X-O-Virus2-Status: Not Scanned X-O-Virus3-Status: No X-O-Virus4-Status: No X-O-Virus5-Status: Not Scanned X-O-Image-Status: Not Scanned X-O-Attach-Status: Not Scanned X-SpheriQ-Ver: 4.1.07 X-SW-Source: 2005-11/txt/msg00112.txt.bz2 This is a multi-part message in MIME format. --------------030206010800010801080900 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 621 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 --------------030206010800010801080900 Content-Type: text/plain; name="sim_mem.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sim_mem.patch" Content-length: 520 2005-11-09 Andrew Stubbs * 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; --------------030206010800010801080900--