Message ID | 20180516185146.30708-6-edgar.iglesias@gmail.com |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="K3NBERyo"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40mNyM1bDzz9s1B for <incoming@patchwork.ozlabs.org>; Thu, 17 May 2018 04:59:07 +1000 (AEST) Received: from localhost ([::1]:34198 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1fJ1dg-0008Lh-UJ for incoming@patchwork.ozlabs.org; Wed, 16 May 2018 14:59:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <edgar.iglesias@gmail.com>) id 1fJ1Wo-0002v1-Nk for qemu-devel@nongnu.org; Wed, 16 May 2018 14:51:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <edgar.iglesias@gmail.com>) id 1fJ1Wo-0000hb-1b for qemu-devel@nongnu.org; Wed, 16 May 2018 14:51:58 -0400 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:50879) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <edgar.iglesias@gmail.com>) id 1fJ1Wn-0000hI-QM for qemu-devel@nongnu.org; Wed, 16 May 2018 14:51:57 -0400 Received: by mail-wm0-x242.google.com with SMTP id t11-v6so3953185wmt.0 for <qemu-devel@nongnu.org>; Wed, 16 May 2018 11:51:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lU9gHChb8u2XTPHjLHseXLIYX0zoW/9g6fwRf52uqnw=; b=K3NBERyoAfVbGQB2+RoSWfPz6+MHTHgprCEnWBBsesd/2oB6QaAJf4wL3UU2jhlmBg FrfYfoCK4OWVEH7/lsQzaqqKI7aYyTDaYJa1eIyYIddM9S0yKePF5oLEBpDCJxpq58I0 o7DSKMdU8gwxKksdGAPokaKmMiNbGTSrCrNsIUhwyBbLc/XbBywngotEyNzjrodEp6ac AVKLfU1vLwvVFQEeS/ePA/dvXthjNNUTYlZtJ10P9adlijCUQNXkL1nu8hEi1uS/3P/N u2z27BnkXIEaukjgRo4PJYzoQ4/+dIhMXXfeEeYHCD0dtfdPaggq6Y2PcZdoMPQ0mKjg I+eQ== 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=lU9gHChb8u2XTPHjLHseXLIYX0zoW/9g6fwRf52uqnw=; b=hYiRJlpRxEPlnzRt3nK90KUPlvhIk8fwIMLUaJUkB41VT56iV+Yjxg401SIu9ymWRx R7eG4gXde/DVy3bRs/Tom+NS8uSCVX0TSHFzOoE81NXKKtA2oEtx7R2IxCZQf3qXcdIz n4g2jxq2rrr9/4xR/kM0uqG4xkeRyhikEmZLkTNCatq0e4/hWo5nhIEuq34SjclPNP6v Cd7qEhujfYgqojJJgr+7BWog35O7lALGE4BbFjRM8YOwpFauQyhhQKxZOu3SqOj3NPO2 tvmTlzs+x8yhDiJtnp9qVahyGXgVcZVIkIpvpOVmTey50FowhatzuxCtYifoFGVqWCOA 19YQ== X-Gm-Message-State: ALKqPwfyeFzawWWc+/X8NrUGpjg7zlUeS/pXO8UFIDS4moiL7wFbp7zq yo9JrkShxNvegUcgqeQMJ1zBYg== X-Google-Smtp-Source: AB8JxZpedYSqA3gvdliuBKyhBRuk4vimfEHmLcob+ypBf0A2e1RVMlwKwRcbExmwBpo8/aTgk2q+Nw== X-Received: by 2002:a2e:4255:: with SMTP id p82-v6mr1317933lja.16.1526496716399; Wed, 16 May 2018 11:51:56 -0700 (PDT) Received: from gmail.com (81-231-232-130-no39.tbcn.telia.com. [81.231.232.130]) by smtp.gmail.com with ESMTPSA id m25-v6sm760485lfc.83.2018.05.16.11.51.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 May 2018 11:51:55 -0700 (PDT) From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com> To: qemu-devel@nongnu.org Date: Wed, 16 May 2018 20:51:13 +0200 Message-Id: <20180516185146.30708-6-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180516185146.30708-1-edgar.iglesias@gmail.com> References: <20180516185146.30708-1-edgar.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::242 Subject: [Qemu-devel] [PATCH v3 05/38] target-microblaze: Correct special register array sizes 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: edgar.iglesias@xilinx.com, peter.maydell@linaro.org, sstabellini@kernel.org, sai.pavan.boddu@xilinx.com, frasse.iglesias@gmail.com, alistair@alistair23.me, richard.henderson@linaro.org, frederic.konrad@adacore.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
target-microblaze: Add support for Extended Addressing
|
expand
|
diff --git a/target/microblaze/cpu.h b/target/microblaze/cpu.h index 5be71bc320..994496515f 100644 --- a/target/microblaze/cpu.h +++ b/target/microblaze/cpu.h @@ -242,8 +242,8 @@ struct CPUMBState { uint32_t bimm; uint32_t imm; - uint32_t regs[33]; - uint32_t sregs[24]; + uint32_t regs[32]; + uint32_t sregs[14]; float_status fp_status; /* Stack protectors. Yes, it's a hw feature. */ uint32_t slr, shr; diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index 46595e6336..9614f15d58 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -54,7 +54,7 @@ static TCGv env_debug; static TCGv cpu_R[32]; -static TCGv cpu_SR[18]; +static TCGv cpu_SR[14]; static TCGv env_imm; static TCGv env_btaken; static TCGv env_btarget; @@ -106,8 +106,7 @@ static const char *regnames[] = static const char *special_regnames[] = { "rpc", "rmsr", "sr2", "sr3", "sr4", "sr5", "sr6", "sr7", - "sr8", "sr9", "sr10", "sr11", "sr12", "sr13", "sr14", "sr15", - "sr16", "sr17", "sr18" + "sr8", "sr9", "sr10", "sr11", "sr12", "sr13" }; static inline void t_sync_flags(DisasContext *dc)