Message ID | 20181214144214.1260-14-peter.maydell@linaro.org |
---|---|
State | Accepted |
Commit | 93e8c20110c69dbaa711838a14b131bdb6fab643 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2161224ljp; Fri, 14 Dec 2018 06:51:37 -0800 (PST) X-Google-Smtp-Source: AFSGD/WqJGBOTmA43roDsf5PTIjCla7RiAIg3OeZEI+DjuCv9gurWSCCvS/sU3STC9xMgFa8+gJF X-Received: by 2002:ac8:1308:: with SMTP id e8mr3137087qtj.201.1544799097286; Fri, 14 Dec 2018 06:51:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544799097; cv=none; d=google.com; s=arc-20160816; b=NSNJ9jXhBE7/T19ZcnLYE7QNOoIHQynzs8Ir07mUwRnZ+uK4P8UAhjvvdvhxUeW1bs RGQ630iiAo6LBmTlRuoF32BdiFvsDYV9b1kxfoopYKtFC3cYTYPju562Jkuth4rZ6tcA tBJBrm61EC7vN9QTEILqfGmgfKUGG2d9XlVZPQL1virUBhc8uMs0T4IrVhXaXZHKoDOs LupJS7Z74SzQmVP8XwoPqs364LWclhF7HuDaHC7ha0Lm02i7MZ5PSAK44sppPZxYSM5V IvKdi564XfYfNVK5JXhsWs+tZTuu4ov4dvIZUugeN1xwAzQzY4Icxi/eCc9CDNBqZZVj Wutw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=Pa2SzLOSRHoutbmuSGPu0TfLU6QaGhITjocaPCp8/tw=; b=yLMQLskFWdR5MF2ZAr5W5vkQj8FYST7V43P9sOcN2+wPZck+YYvGXCq+Qr+LV5U4YC 6vWOUNCzjRyeFfunZbNCVkkc5z+HylFsd6FO+qEXUlf1V+/2TMREZ6B11gmNHRzqubGK jVtwDDHoNnyPyFfFHMIxb4odJhL9O9u50zsWt0xjOhn/8/KL4xLewSXqhwmtgJ/bt85c m6b1+hM9FBnRqDGYoYHXEnP82YjqhuEMEUgYwxFg/w416i6/IMfVJWj6t3DKdXdWD9C/ MI7mewvuqOrg0rJfZSv3TbereTSJGpxLWcC/HJxEE8blwQfqS6mwcSAGlFcOpvZ1QZV5 2hmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=FbA9QhO8; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id e127si418230qka.152.2018.12.14.06.51.36 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 14 Dec 2018 06:51:37 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=FbA9QhO8; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:33911 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1gXooS-0007lQ-IZ for patch@linaro.org; Fri, 14 Dec 2018 09:51:36 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <peter.maydell@linaro.org>) id 1gXofi-00005F-Vk for qemu-devel@nongnu.org; Fri, 14 Dec 2018 09:42:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <peter.maydell@linaro.org>) id 1gXofi-0004R6-5Y for qemu-devel@nongnu.org; Fri, 14 Dec 2018 09:42:34 -0500 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:32826) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <peter.maydell@linaro.org>) id 1gXofh-0004QX-Pc for qemu-devel@nongnu.org; Fri, 14 Dec 2018 09:42:33 -0500 Received: by mail-wm1-x341.google.com with SMTP id r24so16399604wmh.0 for <qemu-devel@nongnu.org>; Fri, 14 Dec 2018 06:42:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=Pa2SzLOSRHoutbmuSGPu0TfLU6QaGhITjocaPCp8/tw=; b=FbA9QhO8XqwdF31G+PtYa7z+hn6nC/7ttoseUJhag9yk9YcRxajZDwwujfyejqQGaZ M/h14PZVP6z6BJzXAPJVL6Q1xHJ6xi2k+zH0UyplgwYhBybQAjQA0QjPbXS0edV2XOQq p7KJsWCghv973+mEMWV8nUHmQhC1AuGuTTgYc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Pa2SzLOSRHoutbmuSGPu0TfLU6QaGhITjocaPCp8/tw=; b=K6gC0siOPf0yoNUiYNAGDqn39Kt/I4C4sCRf3J8z42tdw46/eBh5fWsqPoeavg019X 0iD+B3RjMdz71qtuIQN0oF0yJy2xxKDnZWINRvAEWM4l+ZqW4DHTzRoJZWsdL1WsZALq yJmUKq5u7VtjBKQORQN7+b9jVvBKpmMCw0Py7M4gtNnoNacqAMNbfgdTQgey6QTt4SG3 Bjx/Lz6lkF0VI7VbJwthbOaN5NyzY39AMhrA5RR2QOfq4xFxPne2tWQReMm5TTu7HBjg atnzkpFfAiWbPUEEOaGM7+krBh5kT8FqPLMF1VaD9t8fI5kqdfbmf5/p3mH1gULy0ZPk IeYA== X-Gm-Message-State: AA+aEWZ67/cFK5t3n26Lb+3NfZyD+TUdnDpXSpBw7qRMfuaMAXD6/3sz LihrnmlWKVgrxnniQakQc8SySGZzqYg= X-Received: by 2002:a7b:ce17:: with SMTP id m23mr3764302wmc.74.1544798552321; Fri, 14 Dec 2018 06:42:32 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id m6sm3263204wrv.24.2018.12.14.06.42.31 for <qemu-devel@nongnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 14 Dec 2018 06:42:31 -0800 (PST) From: Peter Maydell <peter.maydell@linaro.org> To: qemu-devel@nongnu.org Date: Fri, 14 Dec 2018 14:42:05 +0000 Message-Id: <20181214144214.1260-14-peter.maydell@linaro.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181214144214.1260-1-peter.maydell@linaro.org> References: <20181214144214.1260-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::341 Subject: [Qemu-devel] [PULL 13/22] hw/block/tc58128.c: Don't use load_image() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
misc queue
|
expand
|
diff --git a/hw/block/tc58128.c b/hw/block/tc58128.c index 808ad76ba60..d0fae248dcc 100644 --- a/hw/block/tc58128.c +++ b/hw/block/tc58128.c @@ -38,7 +38,8 @@ static void init_dev(tc58128_dev * dev, const char *filename) memset(dev->flash_contents, 0xff, FLASH_SIZE); if (filename) { /* Load flash image skipping the first block */ - ret = load_image(filename, dev->flash_contents + 528 * 32); + ret = load_image_size(filename, dev->flash_contents + 528 * 32, + FLASH_SIZE - 528 * 32); if (ret < 0) { if (!qtest_enabled()) { error_report("Could not load flash image %s", filename);