From patchwork Mon Jun 1 16:14:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 187345 Delivered-To: patch@linaro.org Received: by 2002:a92:5b0a:0:0:0:0:0 with SMTP id p10csp3182999ilb; Mon, 1 Jun 2020 09:22:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylKd1x/JlPa+duJBXDZ0ElR8qZ9qyBGYNv/dPNh29w6E538TcAGqGFWW0zCuLksKmw0O43 X-Received: by 2002:a25:ba8d:: with SMTP id s13mr36344310ybg.123.1591028562248; Mon, 01 Jun 2020 09:22:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591028562; cv=none; d=google.com; s=arc-20160816; b=SZ6SeRdPQCpbSQa6gDcx6EaL1ujdTaRaJjeN9WnbAnSBrhduPj61wpNUexqmn8pgKu /FTsX8elVph8aFBlZ1ZBe8RSOSn5CS7ccjPV3PwSifo1FKcVR08Dljwif4e58HTq6r7y nbPBSinfI6TceJm3VydnzDb8TpsdoEUZAh4DVc9y2GKoC1eRynYoiec0wDBmVGUu8ycx myFJN/K4Fka/B9Igifz9OOYp92wTLnTo9Zc6ZjWntAhQNur8qHgrWpcJP2ImX4sPByIS OA5889AQg6O+Z5AR6WB3UCm4gOw7XdBpNUdEZZNBN+rChdz05rWXwgLMahPvvkZbhwBJ xaQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=+dT4hPe13b2V1KUy+9YeeyPPkO3c2tsutvWPTSNqBlI=; b=P7HaqJ8WNdOs2NaqO25PDe0gkj8pzAkLHpSM3/Sin4W48mp/g2Dn4F96Jn7br8BT+F j8NEDZO0bCAdHEPzxr+nM+GWnqyh60BvfYmY+8q366B1fbw3IHJPFtvwDpH2noxcdPJy zJYWiXz6OuOE+C3R0niaZJkouXgPBd9jRGauiRmYUfq1w89GIyWjyL4apv/owiHH+x2z oH1c1Aa1aDzxm5Y/ZCrjUD+8pNiLm7O1TrDpfRuuiuiruWdFrkL6M+e4ss+qQLcp5uRn ZnnsXeWBZ/IjvdkdE+B8cpB5o5Pk3lx1L/Yo7yL6698MuTokwkKueHhfyPOgfrDNJ4NJ n+1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=QE9DzSid; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amsat.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id k13si20311151ybt.389.2020.06.01.09.22.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Jun 2020 09:22:42 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=QE9DzSid; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amsat.org Received: from localhost ([::1]:48780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfnCz-0006uN-Pi for patch@linaro.org; Mon, 01 Jun 2020 12:22:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50936) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfn5V-0005MQ-Ne for qemu-devel@nongnu.org; Mon, 01 Jun 2020 12:14:57 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:33644) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jfn5V-0001X0-0E for qemu-devel@nongnu.org; Mon, 01 Jun 2020 12:14:57 -0400 Received: by mail-wr1-x42a.google.com with SMTP id l11so445940wru.0 for ; Mon, 01 Jun 2020 09:14:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+dT4hPe13b2V1KUy+9YeeyPPkO3c2tsutvWPTSNqBlI=; b=QE9DzSiduZZGcx+EVRldlAhiQa2yGvSqgoiQeNN/i0r9TyM+zD4EznYZizywXAlqNT QC9kdu58She2A/GFmw3V3leLugCCA08ri/3Y43mSLzmThC6lhcLumKlNdZIeNdtmFbfg kEZbi+L1Vl/OjMheFi1e4fA6wp+f+JLaq0plk1/d9I8KTfS8dWrPvz+CmwrNs/r/iepC DvIqWd45O+pbH+fNrJ7c/Q5HhnrIn+wlxeiRZL/LQ9TxK18UpXI8nyDkLu1d7fEgfVez sM3FJdsO+3FO8qzZSFwsMxqRqdQGnaVPq6v+YjEQFtwyl/mZjb7rum4Bkyqb+UyudE51 DiRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=+dT4hPe13b2V1KUy+9YeeyPPkO3c2tsutvWPTSNqBlI=; b=Tcg9KdpFLR5gl6HvxUwMgLhtmahpcm0/9MooFbv6lPcZFtj27BFR6DUVMVnuPrSFlT JJbrySVHIyHN1x12kiLD63triWxw4CNVsNJL0G1kiVShOwZVUEMz+h9aY6rQR1mOEYJf N/5RGDcjSo2Wc8wTnh9zftWucH3cAOmjkBGHpIs1UmM2ssye9TeP7DXbyUZB/qcVlbfv QrJ0kxdw3vfn8UT4kae21yJRsciPZpov4GJVydUd2wsq9fffU49Zz0NqZOfbZcse0w/X nPUtCA3/IWdp5+PxSWFpWtZvbZ2d7UYYuvlf3hUfemgeJFShppGy4Rr4x/aFeMML2szy PdEw== X-Gm-Message-State: AOAM531bQVfvjMuVj83vpPoa8Ut+J9eScwBMTQpVxk2Kbq1eNJpMMh4Z Ri+rNt0NSNKpzMZpQmTFZIE= X-Received: by 2002:adf:f450:: with SMTP id f16mr10793564wrp.307.1591028095675; Mon, 01 Jun 2020 09:14:55 -0700 (PDT) Received: from localhost.localdomain (43.red-83-51-162.dynamicip.rima-tde.net. [83.51.162.43]) by smtp.gmail.com with ESMTPSA id a6sm21309896wrn.38.2020.06.01.09.14.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2020 09:14:54 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: Richard Henderson , qemu-devel@nongnu.org, Yoshinori Sato Subject: [PATCH 08/12] hw/rx: Honor -accel qtest Date: Mon, 1 Jun 2020 18:14:37 +0200 Message-Id: <20200601161441.8086-9-f4bug@amsat.org> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200601161441.8086-1-f4bug@amsat.org> References: <20200601161441.8086-1-f4bug@amsat.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-x42a.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , Richard Henderson , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?b?w6k=?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson Issue an error if no kernel, no bios, and not qtest'ing. Fixes make check-qtest-rx: test/qom-test. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Yoshinori Sato Tested-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Message-Id: <20200224141923.82118-19-ysato@users.sourceforge.jp> Signed-off-by: Philippe Mathieu-Daudé --- hw/rx/rx62n.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) -- 2.21.3 diff --git a/hw/rx/rx62n.c b/hw/rx/rx62n.c index 13c90102b1..92d215f07a 100644 --- a/hw/rx/rx62n.c +++ b/hw/rx/rx62n.c @@ -21,12 +21,14 @@ #include "qemu/osdep.h" #include "qapi/error.h" +#include "qemu/error-report.h" #include "hw/hw.h" #include "hw/rx/rx62n.h" #include "hw/loader.h" #include "hw/sysbus.h" #include "hw/qdev-properties.h" #include "sysemu/sysemu.h" +#include "sysemu/qtest.h" #include "cpu.h" /* @@ -217,7 +219,12 @@ static void rx62n_realize(DeviceState *dev, Error **errp) memory_region_add_subregion(s->sysmem, RX62N_CFLASH_BASE, &s->c_flash); if (!s->kernel) { - rom_add_file_fixed(bios_name, RX62N_CFLASH_BASE, 0); + if (bios_name) { + rom_add_file_fixed(bios_name, RX62N_CFLASH_BASE, 0); + } else if (!qtest_enabled()) { + error_report("No bios or kernel specified"); + exit(1); + } } /* Initialize CPU */