From nobody Wed Feb 11 00:59:35 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.128.46 as permitted sender) client-ip=209.85.128.46; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-f46.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.46 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1623951811; cv=none; d=zohomail.com; s=zohoarc; b=FfjhvfNKe9GGs+nailnw2E5AXf1esn9juEcnpNUUGJurs1HC6JxIb5wDMgaStFP5HrZqIf5juIPNUFYI6J5MaID3QRcrMKBXlmevrmkCgsV+kcbwK9eFPks/St3KC7rUwavYbvDbfoQEKku/qnY0GSQJC8tFy1kcuaWs9KBY3uI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1623951811; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=OWUY/dG4dghXb308+v5XGfZ+xJXcTg6zhfiqLqE4gSg=; b=n0Egkk804LuEu2vp1B6lQORO5DiO86lM3UQSbEWkFI+ltEfzI1ARPKfZ2xF2E1lj3HML+TH4JNK332Tds3lQHvwA7Hfcqg5N5hwDOlr78nT+8Yl0e72SL/TceL0csnYhsTmHDbzMoA3VoqUkp8azoOvMFoLk6CwrecpBvpD2UuI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.46 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by mx.zohomail.com with SMTPS id 1623951811554637.7385261396373; Thu, 17 Jun 2021 10:43:31 -0700 (PDT) Received: by mail-wm1-f46.google.com with SMTP id 3-20020a05600c0243b029019f2f9b2b8aso4164736wmj.2 for ; Thu, 17 Jun 2021 10:43:31 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.. (93.red-83-35-24.dynamicip.rima-tde.net. [83.35.24.93]) by smtp.gmail.com with ESMTPSA id k82sm8602873wmf.11.2021.06.17.10.43.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Jun 2021 10:43:29 -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=OWUY/dG4dghXb308+v5XGfZ+xJXcTg6zhfiqLqE4gSg=; b=jGHgKeQEZHQm3HeZNE7vFQ2dPti8NDBScAhvG18KIugmickHzzVHcbrdKzH+2QD1FC 9/3l14g+kZYs/O2aiUbsqOQO0pVZBPKZQOz3ZzEHMH+VUZJup+2c8Dom7cER+z1ZRofP fYGWgVWuqWc/3+CY2Gk9/7Y+S6M4lZrBc8eIjLrqafJfVpFgrR4iFOSN8Isgf3Vlo3pg 6yHCsMPyH4O55UKkf7rtDtZbcsZV1xUwoUujTQJUo5NOVVJtFIaEtq9EYQDLdKYj64ws Z1F7b+ho0s5LCrdKJ8kzVI751aOE2+L/wA/ROuEhPtbCp06EEMLLB2g9Olo/VJ3WpC9P Y3DQ== 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=OWUY/dG4dghXb308+v5XGfZ+xJXcTg6zhfiqLqE4gSg=; b=sKSliPuKuY4g+gT8VLr9EHNMI7IV4QpspGCNRtYKMqMxAzBNksGPKypjs7wbNjehGk qngyFIJWJh7UbB6iH74BNMdjsvZv8fSqpZ6OJqnxkEK1gh3IVDF9AXHojkPJlfdGPW9P pxdT4pLIAAB+/L64lpkqlFTHoLXbhhCR3AeUeNVJr/sLB6ZIh9GPlkIg435qN2O5mNko ArTi3rSNIzW9MhrDYB7MLw3gdMp7wyh6RAfQawawItbTPiFC8pyRtpz1FuB8azgZgOEy EdzRRL71gzPbl+X1qkFi6ReHOc4Nr/xUWRao1PiQS17A4UeS8XR233AYiuBuF/keAkLJ IFig== X-Gm-Message-State: AOAM531F3w15eKUDILdO+SlYn9GW+zp6yrK7l2/exst7ggvxMe2zDMi1 sTHYYcLeYkr79K/7M8GLQUw= X-Google-Smtp-Source: ABdhPJwVewpujhAusmSvetR73dp2LL3wn2XrBuhQ3tKdb04/hoe+MYCXnrRuLtxOLywIe0QuyJexBw== X-Received: by 2002:a1c:5f87:: with SMTP id t129mr6495962wmb.86.1623951809862; Thu, 17 Jun 2021 10:43:29 -0700 (PDT) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Aleksandar Rikalo , Richard Henderson , Aurelien Jarno , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 1/9] target/mips: Do not abort on invalid instruction Date: Thu, 17 Jun 2021 19:43:15 +0200 Message-Id: <20210617174323.2900831-2-f4bug@amsat.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210617174323.2900831-1-f4bug@amsat.org> References: <20210617174323.2900831-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) On real hardware an invalid instruction doesn't halt the world, but usually triggers a RESERVED INSTRUCTION exception. TCG guest code shouldn't abort QEMU anyway. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- target/mips/tcg/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/mips/tcg/translate.c b/target/mips/tcg/translate.c index 0954ce0dbc3..b92a473f870 100644 --- a/target/mips/tcg/translate.c +++ b/target/mips/tcg/translate.c @@ -12151,8 +12151,8 @@ static void gen_branch(DisasContext *ctx, int insn_= bytes) tcg_gen_lookup_and_goto_ptr(); break; default: - fprintf(stderr, "unknown branch 0x%x\n", proc_hflags); - abort(); + LOG_DISAS("unknown branch 0x%x\n", proc_hflags); + gen_reserved_instruction(ctx); } } } --=20 2.31.1