Message ID | 7fc5c46c407bccc9089d7f705bdc8caaea2b67b0.1532559484.git.alistair.francis@wdc.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 50E66112E for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 25 Jul 2018 23:07:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E8392A674 for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 25 Jul 2018 23:07:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 32E062A680; Wed, 25 Jul 2018 23:07:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BA3E02A674 for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 25 Jul 2018 23:07:50 +0000 (UTC) Received: from localhost ([::1]:56628 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1fiSso-0005Mr-17 for patchwork-qemu-devel@patchwork.kernel.org; Wed, 25 Jul 2018 19:07:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <prvs=7372f4cb7=Alistair.Francis@wdc.com>) id 1fiSpk-0002gJ-Ta for qemu-devel@nongnu.org; Wed, 25 Jul 2018 19:04:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <prvs=7372f4cb7=Alistair.Francis@wdc.com>) id 1fiSph-0004hG-TP for qemu-devel@nongnu.org; Wed, 25 Jul 2018 19:04:40 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:53221) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from <prvs=7372f4cb7=Alistair.Francis@wdc.com>) id 1fiSph-0004g4-Gn for qemu-devel@nongnu.org; Wed, 25 Jul 2018 19:04:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1532559877; x=1564095877; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=WS1H4TKFvZxFT1sYO4bs+0OYugOB9GRdOtCp2qhyPSc=; b=PWkT9yAkyjdc2dFADiK6HZMcjLZZC0g4CmxFuHrdjhQs4ETYkdJIGxSs TyeSvCSBskElGvKyP8ec3Rj1NJORlNaUDjTbvpT51zCsSYqkU9pPm7cHc S9sYxEY7IZN6KZwSFdu8eCOgsZ1mEDq7ZXGa0fn2i3/X1lYzVSttixpA4 Os6srdwFq3wN5GDtyakU72tx2Ofea0GoUxrxkYZ37ioj70/NS6tF1Mx0y 84Qd0/3TlYPyaCa2u0B805VVCy0CukBnVbaDY2PQ0gROx0gcepxtXEqYQ iv0s5YHXPAgbdCxuYf6vBdzjOvcT6AYkr2oeJQKK2QCyPZ+7Fv2mKqgfX g==; X-IronPort-AV: E=Sophos;i="5.51,402,1526313600"; d="scan'208";a="86404640" Received: from mail-sn1nam02lp0022.outbound.protection.outlook.com (HELO NAM02-SN1-obe.outbound.protection.outlook.com) ([216.32.180.22]) by ob1.hgst.iphmx.com with ESMTP; 26 Jul 2018 07:04:36 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YwQL8xM21YqIil1nnlA0qhwAyn6FNuz03c1Nx3Tv3vw=; b=Vzfuvqa1V/CrraqdxiBpyqA95Gj7zNHZmtcSxfotW1qzTk0dFBTIcIj2HPQdOI6iV5Xo/IJLY+qu6tuzmSyz9APafQaIlw2bBOkzbxd7aDQRZodyE6LwjYxV1tWOxACscFRNIr5vREzsk2a5TgkHJIT+9lKdhzrKRjz+6z0Peik= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Alistair.Francis@wdc.com; Received: from risc6-mainframe.int.fusionio.com (199.255.44.171) by MWHPR04MB0399.namprd04.prod.outlook.com (2603:10b6:300:70::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.973.20; Wed, 25 Jul 2018 23:04:34 +0000 From: Alistair Francis <alistair.francis@wdc.com> To: qemu-devel@nongnu.org, mjc@sifive.com Date: Wed, 25 Jul 2018 16:04:25 -0700 Message-Id: <7fc5c46c407bccc9089d7f705bdc8caaea2b67b0.1532559484.git.alistair.francis@wdc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <cover.1532559484.git.alistair.francis@wdc.com> References: <cover.1532559484.git.alistair.francis@wdc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [199.255.44.171] X-ClientProxiedBy: CO2PR04CA0057.namprd04.prod.outlook.com (2603:10b6:102:1::25) To MWHPR04MB0399.namprd04.prod.outlook.com (2603:10b6:300:70::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 41059474-b9a2-47eb-0456-08d5f282fcf3 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600073)(711020)(4618075)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:MWHPR04MB0399; X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0399; 3:mjTPO1A7njku7GmSsOLw3F+VsH7gm6lKcQK2Se1+VdJugpwdbLPBeG582+UgwKlTudC3OYRRIL+rjCn/AGkxUq3qVD1s9nMvEYHKGzf0reKJVdkGvQvcAowwCxzvueUTkuiT4CF5zpXYhRXLskkmEPMpqGCVeXcYR38lhPcuo0IA27ZF+6adn9dMrx5xCbLfpSCgzOKNOtYDrfVO3KdFYtwafXruhNRJnYLEj6+ho7SJUQsQC22vA+Oemf5Vyty+; 25:h0QK5sNMkG+9R2d+n247ptzaMhWnaJbbP+7aQNCT5+VZB1toPgJWLW9+f3fvuwDLOMdJOlld7E1D4vA70EWyFrbjcA91uRTcKib6viZZB0CxdUFTW8xypIYE9DKS4YwptJZ6V9iopKLU8g5/INOJHSN6lnOKmpOxKKR6zKHWPTg+EeQN/smQd6qN3MRguVtoaVJ/LY3rwdaE4GQ0EjVZL91GzK+MuVzGUqI2pXPoMt6KoczLQ0rX8qxK4IDVUo+b1pWpIJJH9x/Y/lIWrjuxxhimrStG+kkSwen07Rg1YDT6XRZSDwPqVWUE7o+6fJtiUzLacObeK+0LYoYc1ojeeA==; 31:/kf//ESqazjQUNJzf7asIZ5mzasiuR6QL+ZULfhYNz3iEbG1FqPH5FqkM67u5FtRZ84YIRe9qICAgaDNzsDPSYLEl7/NRR9XfdY69lYtOx+3CnhnOuQLQ+TDsTEd20zZgY4lgdXA4BSOJUpI1L80SN28EzxuRDhEuPjyZ426tIMB8lqiYLZgZf3ed7agffIGtm/NyFZRTkuKZwIDfG68ip1NY+xNC7ODKR7kEw9udUI= X-MS-TrafficTypeDiagnostic: MWHPR04MB0399: WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0399; 20:LrfAm0tKCeHY7dfH8P41M16exViJoh6wmp6zHBPEa1VHG7xP1/mXbH0Rn4zQ/ZR64F21jwHD9PaKm7xAL/NY2uakskxENGIlkINC1nUAshmUaRZqs42fDyk6Xlmmdnl6fnCTKwzAReChX+sOLBZK/cLsVoDs0X5mRJBPnGAsexYhd8M4Vyn3BQzODYFpe3NgzCteCPmLdq7D2DsWdo1f29Q9VvRyo6/TvYkKevGJEDE3sp73mFksIuMONUs6C/8s/oOT7G+DcU4gt5Y/z4OD1CreFuAS+dwMIam1WLiiRIFw0hXHprZ5j73iTtP9frN4XH+rTmlhjtALIyuLy7/bkMqRWtzFsMw7iyiq0ff6DzgeSU4NUoKsJsHMbP8hHW523XQN2fCqiyoW1dPh0S9acKp1jUfZ6LhH73U3kSLRSFNr9ycqTdxdSi1Jk1q4x/EBotxM0gI+O/XgIlGaJf5VvlsA4dnggFLltvEERVw8Wncfra8UzRxhMUBF3IEzAGcy; 4:Xo49bsY78gUWN7duR+6G96xNdl7K11/nPVcBm4Kr/0engSmShFMniZ8JRj+WmF2aioEI0QLVqJn306lf9pzLJAA8N7PANVZoRQFfC52cpOVEagPr9Qq2U6Jki7fbwezGJ2zDexnlyqBeTpmIApQmY2swYzoxwrNlZ77ZGAmV2PbRLbSv8fjMNxE/a+AxOgR8jKvau4KoDVrXlF1av7p6Qzt4dDIf2WlDcAtvAVqYyo+YAGBPcZarBsj47fA+KatJM9HGYJNA2kfvI2wyKi+G0A== X-Microsoft-Antispam-PRVS: <MWHPR04MB039944E464C2A30797F12B1190540@MWHPR04MB0399.namprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(3231311)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:MWHPR04MB0399; BCL:0; PCL:0; RULEID:; SRVR:MWHPR04MB0399; X-Forefront-PRVS: 0744CFB5E8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(376002)(366004)(39860400002)(346002)(396003)(136003)(189003)(199004)(478600001)(316002)(2616005)(16586007)(476003)(72206003)(44832011)(186003)(6506007)(86362001)(76176011)(386003)(81166006)(50226002)(51416003)(956004)(52116002)(16526019)(68736007)(39060400002)(4326008)(26005)(50466002)(81156014)(8676002)(48376002)(6116002)(6666003)(25786009)(53936002)(47776003)(11346002)(446003)(36756003)(105586002)(6512007)(486006)(66066001)(118296001)(97736004)(106356001)(7736002)(3846002)(8936002)(305945005)(2906002)(5660300001)(6486002); DIR:OUT; SFP:1102; SCL:1; SRVR:MWHPR04MB0399; H:risc6-mainframe.int.fusionio.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR04MB0399; 23:exyBzTkHF0Zm1EAf96GikHBMrEamoauAmLYhjZd55?= j46/WhNFJ7LZ2VbjCp9PkCEs4zXmEdRvp1u99xJg7ojyUpTF0Z+8k8pNW6ux/+jQiDmjfSTDDr6I858uShTEHNxzxoBm9mmCEK6R6k0+zEUBCcTSHQ+E7yCiUsOdBj2267toi/qPTHs5x38gd8b9ln0SxGCotiqig3rPOVlZAqZX95vHYI51+ptQST1YVTrbWmvc/oBVNEjAHh8kKd5vsRU7yBAhp4XEqD2SjtCsEy6bVW4hmUw3FB4LhJVvLCn1XlkjThSMKw/hRthQfY4uRrRYT5CmUXUEeGnAVk3oMoTEqu+nIaCHRKCglR3wTfFwhtLp4vCvvdsXBxIHQ3385gkTcX4QPjQQem9Q9s64fmkhtYYtFJ/jB1D7F83BES2p0NBkwRFJt0ToHl2FL/3dE0ZGJGye54MDANjEJH7rkRjTrLyJcBaNR0XFBMHWgHw8PQfCRTAlzZdFn7dGjamRV+iY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ZYDH1PVADurTA0T0jFm84a92f1Ap+pxX19L+dovuM0okQ9N2a3k1qQiepkj0= X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0399; 6:D32edyzPA/XI72QvdsJQ7kN5l9u+7aN8sH5eEWoTgs43cQkWAkAJLauPHxTUTrBnZnG9vIyIWwzXG4srJKt/LPB81rjabvW82UgD0lEnZECiFcHKK0467rlMMLXe1AWq/aQCYv/ZV3mMYP5hGAJUCwM7s9+mVV502Io502fRSs6nADU3yKqA1MQArv14lo+MUNOd8iZRquwjJt7+tDEfYTlFKMMYPU8TESETWhoyqpnrOXuj1JTZgmDkWsSfv76fhfuIYkW9Ju63ATqb3c27BCqNBrxogFfFOmB3kBBI5uNaOPPvPAqzz/hYLaBnYUK6xYjfXTFcF7lP+uHTOH9ce0R+JJEmPsq/D8QFmfOS3Mk3fP31fID9iReyLscHtqLQ7W0KGcs6njZE2PG+Y43VWPdOlzMy4tDMpBdgKGh7KDpaPlFZqFbUlesIIlbJq2PrNQEBj/qsNIpwBlGBfeSiMw==; 5:LragbH4BP/QkV91sXrvTvjdlMtylWhbw8T1IqTb0ISOHlQS/yyzmAJ10vr0vki5gWVcL5+ZVCnTInO9HWMqmWH1yKqvuramV8GolGRRKaetcZxEd1jalydLicwF2SEaDE3YaAhuF3IiGVkn8L+jEXuDnj3KHBag+gd/4ABTFmy4=; 7:nhJPEsNxB0PGXy3F6xSDFoudGlOu6fdKfu6aSThgtrTnDmx2vU4iyvcnblDJB98yAAicJdHO62DMCxuoosT+9Ul2+71BHhxd+C2celbyyDaNGQtFBHuZzrosVMZ1oc3Pgfv9v9d4tj3v0RmmuviSPzuxerKWQaLQmUUZ+FbsHB29St/nXBHYZi/I/aNdWpBTXrYmbhHdu0aCZaHZHqC+A4O5nK4vL0neVm5NWF76BVMAHeMtPzSGI/gfAiu8Jvwq SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0399; 20:yozS6/fZgS/j2PPdCzVq2n0r+3ZLS4gaItTo6U+OC0YXOUTATpJS0g8cnu0dLAk3c2sEI238vmAaYkn64lnjksCj8wm+Cubn9q+QmjEEm2IBROP5oDXfFAw7uept15VP3tM9SZ2LEtsRxDduwA+h0Jmy6eg8y/fHOguAOBIeQmk= X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2018 23:04:34.4685 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 41059474-b9a2-47eb-0456-08d5f282fcf3 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR04MB0399 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 216.71.154.45 Subject: [Qemu-devel] [PATCH v1 4/4] target/riscv: set mtval and stval support 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> Cc: alistair23@gmail.com, alistair.francis@wdc.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
RISC-V: Populate mtval and stval
|
expand
|
diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index d630e8fd6c..b33950a2d4 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -133,6 +133,8 @@ static void rv32gcsu_priv1_10_0_cpu_init(Object *obj) set_versions(env, USER_VERSION_2_02_0, PRIV_VERSION_1_10_0); set_resetvec(env, DEFAULT_RSTVEC); set_feature(env, RISCV_FEATURE_MMU); + set_feature(env, RISCV_FEATURE_MTVAL_INST); + set_feature(env, RISCV_FEATURE_STVAL_INST); } static void rv32imacu_nommu_cpu_init(Object *obj) @@ -161,6 +163,8 @@ static void rv64gcsu_priv1_10_0_cpu_init(Object *obj) set_versions(env, USER_VERSION_2_02_0, PRIV_VERSION_1_10_0); set_resetvec(env, DEFAULT_RSTVEC); set_feature(env, RISCV_FEATURE_MMU); + set_feature(env, RISCV_FEATURE_MTVAL_INST); + set_feature(env, RISCV_FEATURE_STVAL_INST); } static void rv64imacu_nommu_cpu_init(Object *obj)
Signed-off-by: Alistair Francis <alistair.francis@wdc.com> --- target/riscv/cpu.c | 4 ++++ 1 file changed, 4 insertions(+)