Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A6CADC2BD09 for ; Wed, 3 Jul 2024 13:09:00 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sOziy-0000Rh-L9; Wed, 03 Jul 2024 09:08:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sOziw-0000Qr-KF for qemu-riscv@nongnu.org; Wed, 03 Jul 2024 09:08:38 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sOziu-0001XS-LJ for qemu-riscv@nongnu.org; Wed, 03 Jul 2024 09:08:38 -0400 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-3651ee582cfso2965559f8f.2 for ; Wed, 03 Jul 2024 06:08:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720012115; x=1720616915; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=MR11Ftgzu+iAn24XxK8Z3rVKsH115yKZTN0muXx4JzM=; b=EfcwyUHW7oU4CCWneofZXmn0k8hCFw8QgCuuG1bpomX2Vf7Nu6C1eQgHaxjIZBeL6P LQvzKdcXVMF+yovcJBf8MTKm5cZCz1qV+xRNPKen7seuFSP7ivPEIpMEPDyn0Ol3Obdl oIPVJ9Fo1h/swpBypD5vB1tQ4/BUfA3TL6E98fQi0GcY8xqN6NNHy5j7WptcpcAVQr3P GFwxjE6AqGNWvSghbrKLaFT5WNGs9vHBKq/Qn9Dfx7AubE+CjL3I8tRgu189N2d4DY6F Jedg5kwIheTEyf1GiNS+hGUT9OS5aqo4HPCTupZ4ydjq1lbzZd75MeP0SMinqYsJ7WPW HZaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720012115; x=1720616915; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=MR11Ftgzu+iAn24XxK8Z3rVKsH115yKZTN0muXx4JzM=; b=ScmO3nY7x1S9FKXVNdhV/yKy/GCT+wuOqi7xuFdBwb+iFAmPjFzKaPdsOl7gW6yOXy 3ns73q0r7PCwdNxsotTwRHh47JKVLRkRrwcb8d8yM4DONuT6x/HhsOAeWjon4HgakgfX 9Vd/1BYDrvU1mYtR0+amDpD7PcRB7NzWWVkuiKugYOzjZFngiA5KQwpO/ZwZEThXqLNz P1p/BoYwh0Y/fmT3aiI75lNCcVBSkKBWZ86VP+VBvJnsPEQVHw4vBj8ZM1sBIGm3KNJd tLLh8xwX3Sexu52qkWlaos2MMSgMN9xFjfTCn2ynuqE+C20Ojrcc8770EexbsPB4CbnZ 7FSA== X-Gm-Message-State: AOJu0YzYSn+LwQFnceDi+0uiqmzvHpQ1jb27b2ZV12jmZdK6YYjpnQzB kS5lCkTlBdb/opWbOV7K1KcOF0yQY9nmj1Eryc6Ok4DsSFx6W2lJNUSJSIaHfH4= X-Google-Smtp-Source: AGHT+IG9CXE8gNzzYcT4g7F00sJ4ycLmH0kKqzZYVJKhNxnZMrIbCFJhDAE/5Be16oPhw1ou/xApLQ== X-Received: by 2002:a05:6000:400c:b0:364:d2b6:4520 with SMTP id ffacd0b85a97d-367756233bbmr11254567f8f.0.1720012114906; Wed, 03 Jul 2024 06:08:34 -0700 (PDT) Received: from [192.168.69.100] ([176.187.220.97]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36790a40391sm2278984f8f.54.2024.07.03.06.08.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Jul 2024 06:08:34 -0700 (PDT) Message-ID: <41c74f3c-eaac-47aa-ae63-b89f6b322d96@linaro.org> Date: Wed, 3 Jul 2024 15:08:32 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 0/7] target/riscv: Expose RV32 cpu to RV64 QEMU To: LIU Zhiwei , qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, palmer@dabbelt.com, alistair.francis@wdc.com, dbarboza@ventanamicro.com, liwei1518@gmail.com, bmeng.cn@gmail.com, TANG Tiancheng References: <20240703123449.1108-1-zhiwei_liu@linux.alibaba.com> Content-Language: en-US From: =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= In-Reply-To: <20240703123449.1108-1-zhiwei_liu@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=philmd@linaro.org; helo=mail-wr1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Hi, On 3/7/24 14:34, LIU Zhiwei wrote: > From: TANG Tiancheng > > This patch set aims to expose 32-bit RISC-V cpu to RV64 QEMU. Thus > qemu-system-riscv64 can directly boot a RV32 Linux. > > This patch set has been tested with 6.9.0 Linux Image. > And add an avocado test in tests/avocado. > > v2: > Remove the line that was inadvertently left in PATCH v1 4/6. > Add an avocado test. > > v1: > https://mail.gnu.org/archive/html/qemu-riscv/2024-06/msg00501.html > > TANG Tiancheng (7): > target/riscv: Add fw_dynamic_info32 for booting RV32 OpenSBI > target/riscv: Adjust PMP size for no-MMU RV64 QEMU running RV32 > target/riscv: Correct SXL return value for RV32 in RV64 QEMU > target/riscv: Detect sxl to set bit width for RV32 in RV64 > target/riscv: Correct mcause/scause bit width for RV32 in RV64 QEMU > target/riscv: Enable RV32 CPU support in RV64 QEMU > tests/avocado: Add an avocado test for riscv64 On what is that based? It fails when applying: Applying: target/riscv: Add fw_dynamic_info32 for booting RV32 OpenSBI Applying: target/riscv: Adjust PMP size for no-MMU RV64 QEMU running RV32 Applying: target/riscv: Correct SXL return value for RV32 in RV64 QEMU Applying: target/riscv: Detect sxl to set bit width for RV32 in RV64 Applying: target/riscv: Correct mcause/scause bit width for RV32 in RV64 QEMU Applying: target/riscv: Enable RV32 CPU support in RV64 QEMU Patch failed at 0006 target/riscv: Enable RV32 CPU support in RV64 QEMU When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort". error: patch failed: configs/targets/riscv64-softmmu.mak:1 error: configs/targets/riscv64-softmmu.mak: patch does not apply hint: Use 'git am --show-current-patch=diff' to see the failed patch