From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by sourceware.org (Postfix) with ESMTPS id 3FABC3858D35 for ; Fri, 7 Aug 2020 10:06:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3FABC3858D35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=mittosystems.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=jozef.l@mittosystems.com Received: by mail-wm1-x32d.google.com with SMTP id p14so1231332wmg.1 for ; Fri, 07 Aug 2020 03:06:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mittosystems.com; s=google; h=date:from:to:subject:message-id:mime-version:content-disposition; bh=UnUzdGVJsLPiQoTkqBLBBlQByzg6bVvLfGnKnQygb6U=; b=AM01QwyhTKTPHmyz/1UYPt9TgYtRXqj2EtNT7jJfes3UEh2WSZYL3HZKeqdcrO+Meb P5cOCPpD9YazYPGuJYtTbv9GIFz6NjnEDIu1/BoTWm7iNG9zArHg/vhcq3VERYHMiWJH YbvTTHl745j22j6BxWBTEPfAQSpbAM/W2jVx5fqFYr8t/Olo2/jJz1p4+ZALtQllDt2D seoYpWd/5U9FREJ9YMqiRmlQRIftNdUC2AdN4j/FKivZ1PkJSGFeikDmN1tuVXFAaIYZ 6GCpm5II2l9EyGdRrhImcr6p3Q8Y0AoHWf6YoCODFI1a+dN1JWyXUB0gfgy1Hx0Q8sFv w5CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition; bh=UnUzdGVJsLPiQoTkqBLBBlQByzg6bVvLfGnKnQygb6U=; b=XtzgxwcnTr8wwqFevoa/ZVRGk8ZypL+uNrQgwnA41jF0V4INJSIEqRcD4ybRkSfRWW 21G4TOI5ocl0FvbwpimU9CTuzr826CWtNH3wsFtcxm3Ykzpby4a6OclCNV7N54nHNtGf rrK8Uhdg8riHVNOyq20U4ZeWnOk0UvOkWUwKUhE7k8iz0l4w8URHLSeOD0dq7OQF0JwJ hu7EXe51qmvKhQi6GHfaOmruJdmWyRYhFPaIYWrNFznHKf87qQuxmgg2/9ZD4MYEIQ7y +c+A6C8wy6JUKB4se6Sb0TTZqVLc5jP9ThHvdfWwmmARKBsh0lCeanjs5npxLj1HLmTq bofA== X-Gm-Message-State: AOAM5336APShbgbK3v5E47sbu1kxy6+N3wV0kj7eGF0KtdJFHvoS6F0X W+ZrJH23suk+mDjP6adWGU1JMLOt7Yw= X-Google-Smtp-Source: ABdhPJw/ABBu/A79/4NYRXEBYjPUWX1DN4DivCF5CMBG8e3zdjwbUWx+9DNw7GmAT9RWO2OaKIDa5A== X-Received: by 2002:a1c:5459:: with SMTP id p25mr12438348wmi.85.1596794799188; Fri, 07 Aug 2020 03:06:39 -0700 (PDT) Received: from jozef-acer-manjaro ([2a01:4b00:87fd:900:5e1d:5c99:56da:76e8]) by smtp.gmail.com with ESMTPSA id x11sm9495039wrl.28.2020.08.07.03.06.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Aug 2020 03:06:38 -0700 (PDT) Date: Fri, 7 Aug 2020 11:06:37 +0100 From: Jozef Lawrynowicz To: gdb-patches@sourceware.org Subject: [committed] MSP430: sim: Increase main memory region size Message-ID: <20200807100637.2wrbpxx53i57vl7p@jozef-acer-manjaro> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="xlop3vfou4sui73x" Content-Disposition: inline X-Spam-Status: No, score=-10.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Aug 2020 10:06:41 -0000 --xlop3vfou4sui73x Content-Type: text/plain; charset=us-ascii Content-Disposition: inline The area between 0xFF00 and 0xFFC0 is unallocated in the simulator memory map, so extend the main memory region up to 0xFFC0 to allow the simulator to make use of the extra 192 bytes of space. Successfully regtested with the GCC DejaGNU C and C++ testsuites. Committed as obvious. --xlop3vfou4sui73x Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-MSP430-sim-Increase-main-memory-region-size.patch" >From 4b48e6d46d7b5cf8758001aded9e74b1eca42c7d Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Mon, 3 Aug 2020 19:58:33 +0100 Subject: [PATCH] MSP430: sim: Increase main memory region size The area between 0xFF00 and 0xFFC0 is unallocated in the simulator memory map, so extend the main memory region up to 0xFFC0 to allow the simulator to make use of the extra 192 bytes of space. sim/msp430/ChangeLog: * msp430-sim.c (sim_open): Increase the size of the main memory region to 0xFAC0. --- sim/msp430/ChangeLog | 5 +++++ sim/msp430/msp430-sim.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sim/msp430/ChangeLog b/sim/msp430/ChangeLog index 41da2a734bd..345c804306b 100644 --- a/sim/msp430/ChangeLog +++ b/sim/msp430/ChangeLog @@ -1,3 +1,8 @@ +2020-08-07 Jozef Lawrynowicz + + * msp430-sim.c (sim_open): Increase the size of the main memory region + to 0xFAC0. + 2020-08-05 Jozef Lawrynowicz * msp430-sim.c (put_op): For unsigned multiplication, explicitly cast diff --git a/sim/msp430/msp430-sim.c b/sim/msp430/msp430-sim.c index a330c6caf5d..7be32cb62e9 100644 --- a/sim/msp430/msp430-sim.c +++ b/sim/msp430/msp430-sim.c @@ -138,7 +138,7 @@ sim_open (SIM_OPEN_KIND kind, if (sim_core_read_buffer (sd, MSP430_CPU (sd), read_map, &c, 0x2, 1) == 0) sim_do_commandf (sd, "memory-region 0,0x20"); /* Needed by the GDB testsuite. */ if (sim_core_read_buffer (sd, MSP430_CPU (sd), read_map, &c, 0x500, 1) == 0) - sim_do_commandf (sd, "memory-region 0x500,0xfa00"); /* RAM and/or ROM */ + sim_do_commandf (sd, "memory-region 0x500,0xfac0"); /* RAM and/or ROM */ if (sim_core_read_buffer (sd, MSP430_CPU (sd), read_map, &c, 0xfffe, 1) == 0) sim_do_commandf (sd, "memory-region 0xffc0,0x40"); /* VECTORS. */ if (sim_core_read_buffer (sd, MSP430_CPU (sd), read_map, &c, 0x10000, 1) == 0) -- 2.27.0 --xlop3vfou4sui73x--