Message ID | 20171229063145.29167-14-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4329676qgn; Thu, 28 Dec 2017 22:43:28 -0800 (PST) X-Google-Smtp-Source: ACJfBot3GiM/kHQ9y5TWupqsKGldejgMU4JZoW1bLIdUDlscLRVKezAYQYVJr8CKllSCx6Rsmh9i X-Received: by 10.129.238.3 with SMTP id l3mr23655945ywm.205.1514529808485; Thu, 28 Dec 2017 22:43:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514529808; cv=none; d=google.com; s=arc-20160816; b=dPmrWJ5LjcxghunAbgcGacjWGur8Yy2Sau6TljnxRKhZAe1iD96Pfku3t95+Mu/T9f F/rsk1bYGc53onZywO5QWydVnTC7Y/zZrFORULOlFmXjrqysO0mxHrSNzCmv8xJfGd9g sjsBvj1U0SxQ00riEnbcmZ5ZcW5QTjpwa3njhhkScSwa7tbJeVyjmlGSWR/3PgHRAtpc V65FiRu50dTZ4zBXh2jl6QpxSyxYonvavSCn+GvYHmVDwoRPedQkLtIvMD3DnlYnEspb n3BtIORMhIfpnRhsNUDQBLIJQfLHOHG2mSnA48RjIuHZbIOFcnqXrVhHBHbL6fIYuXLM E3fw== 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:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=aFHIkozRWX5if2e5WGCHQPivH4xIjlspquNWW3iUH68=; b=lsmmAm5mLrkaCHt/SYvl71Q4ulykqx2gLN9d5bseOeTiQDlona3XEbzObBVwQlvLNb AgkN4gsZy/MONrS2bjavOZpLvM17KIz2qacTumhwZq4G9MOTTv/nkFbHJ0vuVGM7mQLV TpPrtHHxTO+iTDkQijK1jADdtqazxIGC8aZmeOB3Q8VV4jJF0xa+v4RLxmeXn+eQrUwR 6XXa/cN70gIkAulZYd1sIYVS6C2+t2xkeOply0ac6E9jOS1ocXoQuqDYQbm0mC+u5CGK hZc4r3cIo0XoN9CZdiXp6y0EQoSM7c2XgrvYdQ05bpcr411GT4TnALKm1u2p0vVgfUsv NX+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=jW5M2iBU; 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 g130si6520064ywh.461.2017.12.28.22.43.28 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 28 Dec 2017 22:43:28 -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=jW5M2iBU; 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]:56988 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1eUoO7-0002yR-Tw for patch@linaro.org; Fri, 29 Dec 2017 01:43:28 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50696) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1eUoDC-0002zW-BB for qemu-devel@nongnu.org; Fri, 29 Dec 2017 01:32:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1eUoD9-0004es-6L for qemu-devel@nongnu.org; Fri, 29 Dec 2017 01:32:10 -0500 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]:43471) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1eUoD9-0004eS-0d for qemu-devel@nongnu.org; Fri, 29 Dec 2017 01:32:07 -0500 Received: by mail-pf0-x243.google.com with SMTP id e3so21816769pfi.10 for <qemu-devel@nongnu.org>; Thu, 28 Dec 2017 22:32:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=aFHIkozRWX5if2e5WGCHQPivH4xIjlspquNWW3iUH68=; b=jW5M2iBUcfoDf+9e/vUPM6HCUDxtX7hh/Fx4/GeMG+ddsUxPZhSaGJegUIbaFE4zR/ SV5+WoykJvQI+HkcEanOdjFRdaDt60qGfKIHlWPmYcCTL+LyOegYsWe1qLhATxYvQBnm 2dcwtkza0TKGtGWyy+3naZBrDXqvxmyPeE9/c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=aFHIkozRWX5if2e5WGCHQPivH4xIjlspquNWW3iUH68=; b=m/yl6lZ2+GMBBPGiexARjsXD0rK3n3qjolHQEZhiX/J5w4FODmg3huAL5w4sh5U1oB 8ZlAABT1cL690fhCRzBH19V9ND94Ba2t9z0TkZYQZwZCy5zK2ZXlfTuM5OSotWnNfL/R l7zdditHbVmL7TPm1Ni308GUGp42Yo/HFY1+1G/tbO9VjIWi3nEm6S/WGmdYUE8mCy1x 9JW8zGXiBjRPfeRThJh7femKfhEp4iXLYRTyaSjJICCd3GOWZnWnZhBrm2b/C1zuZFnu 50CkF93gullU37X0FUWrMVSapehP9iA968XKsochMEajQcoBEX6GpbPAaYbptm72Hp7y 4E1w== X-Gm-Message-State: AKGB3mLHuNDOQpVFCCq72weVeBDVkxwWWrZftXIcXzRmI4owhR7sVHAs EOQLC1MpvH8pNAwEs1jNNH2sS9y00TI= X-Received: by 10.101.70.65 with SMTP id k1mr10055950pgr.320.1514529125832; Thu, 28 Dec 2017 22:32:05 -0800 (PST) Received: from cloudburst.twiddle.net (97-113-183-164.tukw.qwest.net. [97.113.183.164]) by smtp.gmail.com with ESMTPSA id c28sm76539063pfe.69.2017.12.28.22.32.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Dec 2017 22:32:04 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Thu, 28 Dec 2017 22:31:20 -0800 Message-Id: <20171229063145.29167-14-richard.henderson@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171229063145.29167-1-richard.henderson@linaro.org> References: <20171229063145.29167-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::243 Subject: [Qemu-devel] [PATCH 13/38] target/hppa: Implement unaligned access trap 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: deller@gmx.de Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
Add hppa-softmmu
|
expand
|
diff --git a/target/hppa/cpu.c b/target/hppa/cpu.c index ca619578dd..6b2d22118d 100644 --- a/target/hppa/cpu.c +++ b/target/hppa/cpu.c @@ -48,6 +48,21 @@ static void hppa_cpu_disas_set_info(CPUState *cs, disassemble_info *info) info->print_insn = print_insn_hppa; } +static void hppa_cpu_do_unaligned_access(CPUState *cs, vaddr addr, + MMUAccessType access_type, + int mmu_idx, uintptr_t retaddr) +{ + HPPACPU *cpu = HPPA_CPU(cs); + CPUHPPAState *env = &cpu->env; + + cs->exception_index = EXCP_UNALIGN; + /* ??? Needs tweaking for hppa64. */ + env->cr[CR_IOR] = addr; + env->cr[CR_ISR] = addr >> 32; + + cpu_loop_exit_restore(cs, retaddr); +} + static void hppa_cpu_realizefn(DeviceState *dev, Error **errp) { CPUState *cs = CPU(dev); @@ -139,7 +154,7 @@ static void hppa_cpu_class_init(ObjectClass *oc, void *data) #else cc->get_phys_page_debug = hppa_cpu_get_phys_page_debug; #endif - + cc->do_unaligned_access = hppa_cpu_do_unaligned_access; cc->disas_set_info = hppa_cpu_disas_set_info; cc->tcg_initialize = hppa_translate_init;
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- target/hppa/cpu.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) -- 2.14.3