From nobody Tue Feb 10 14:32:50 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1599247081; cv=none; d=zohomail.com; s=zohoarc; b=dSz2RbNUlRXllqAIKViwpC9HMCZSWE+v2/lri4jHaJSuEMXswGrWtTgYVVQq5sKMe5JDGcFyS3uZcpRLy529tqF91V18TB02FXbc2IPritwy3drETvvegHJ7QJGeVweKx9q/MNj91W9M/9YxIeq38Sm+Qms/LHv2+2bGqtHLJ2A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1599247081; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=XwF8rh/HiJftrU6kWorHEFCZRvIfR8zgWMSMwHATuFY=; b=b8LYvlQ0pTqLSDzbJsW1vKLq6SdyW0UPNhuHLjEI5vhk95rO3quHNL3N8SBMq3TvFq5p/rDWPkDkFWsOwy7DWu+PVYwLfpeW6DYdjrqbs9XSDf42Jsvh5gea45SF2Jbfp37UOZlUj9wjQS9PXbYgNuK0pRq1lgNqZBxKXG23hPs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1599247081985773.8886887150458; Fri, 4 Sep 2020 12:18:01 -0700 (PDT) Received: from localhost ([::1]:42184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEHDi-0007dB-Ua for importer@patchew.org; Fri, 04 Sep 2020 15:17:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEH56-0001oz-TC for qemu-devel@nongnu.org; Fri, 04 Sep 2020 15:09:04 -0400 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]:44127) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kEH55-0000pK-4V for qemu-devel@nongnu.org; Fri, 04 Sep 2020 15:09:04 -0400 Received: by mail-pf1-x442.google.com with SMTP id o20so5107061pfp.11 for ; Fri, 04 Sep 2020 12:09:02 -0700 (PDT) Received: from localhost.localdomain ([71.212.141.89]) by smtp.gmail.com with ESMTPSA id x19sm1897941pge.22.2020.09.04.12.09.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Sep 2020 12:09:00 -0700 (PDT) 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 :mime-version:content-transfer-encoding; bh=XwF8rh/HiJftrU6kWorHEFCZRvIfR8zgWMSMwHATuFY=; b=Zex+DPqrIiCBqfQzJ8cVXtYlmhJ+/4vwYa/f2ZhtfwI/5rUxho5shXuUY2rhK774H1 DcSlHAo8o8DYsdJr7Cfnce+2TeZfp4PnAqUPuuuVhlJi2G7k3hRx+/CTOuYqh/TL8Hmm JoiMbjxEKyx+8CU8FQ3syWOkKI57AEv5tzmeWpYezQncO2L9puUKMkrHaktXICCYtTaF AxHjEWBfK8p4IDoCEr5ZvTOhVAxGHV5uT4YCT10WZVIODKVUfqLGfSp9t2ib7Bmi1/98 KD6qB+ylQXO1yFSviIOGI97qp12i69QgaVkC8LtScVr7Kc0xedN67duuhWhF86s45lkc hUGA== 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:mime-version:content-transfer-encoding; bh=XwF8rh/HiJftrU6kWorHEFCZRvIfR8zgWMSMwHATuFY=; b=NRhRpafqWCNOMaJQtC2D0rkujc4tpf/Mn0uL7GlM13p08ilwwLrthbqqIK5Eu0Ytyh PBzXSKBykBa9qW/ViUEFQM6agI2BQliZ1TsvdJIYX4ZsDV8qRKYIhLrZ6GmVh2iuuBxk mrOLqVmsHg+633Jc+dDt0UmkDPIgr9o3bwsCB4BgoIZ2eaCzcHDAGp0LQrLQ7wXyuSHW oi0v/5yt3kRJ8jzj8nH38WSQMIhv4gTnDgg1/ZPFykilBFGW/urS1GkPPcdZWRKv0oMK G/hG3yw5pd3vI8wIsVHYNIbLKUEAQID+c9iYD2i1xql/H7mUTMxLEwu/zGw4JIpEnUx8 555g== X-Gm-Message-State: AOAM532UxU3GPSAoI1x/FPrFDADhgYtDM/V4OFUxBPyyDgcP3ravzewl IAv/5mavROle7i9ztakmNgkaNtUhxYnHSQ== X-Google-Smtp-Source: ABdhPJzFwCMD95ZNEVTIkCrM/YzYoamv760nsTAIUyHgsMWVtMywrwCpRWCYsV9pZey4imREt6DYuA== X-Received: by 2002:a63:d4a:: with SMTP id 10mr1736833pgn.175.1599246541501; Fri, 04 Sep 2020 12:09:01 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 12/19] target/microblaze: Split out MicroBlazeCPUConfig Date: Fri, 4 Sep 2020 12:08:35 -0700 Message-Id: <20200904190842.2282109-13-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200904190842.2282109-1-richard.henderson@linaro.org> References: <20200904190842.2282109-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::442; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x442.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: edgar.iglesias@xilinx.com, f4bug@amsat.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" This struct was previously unnamed, and defined in MicroBlazeCPU. Pull it out to its own typedef so that we can reuse it. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/microblaze/cpu.h | 55 ++++++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 26 deletions(-) diff --git a/target/microblaze/cpu.h b/target/microblaze/cpu.h index 20c2979396..59d2a079c4 100644 --- a/target/microblaze/cpu.h +++ b/target/microblaze/cpu.h @@ -291,6 +291,34 @@ struct CPUMBState { } pvr; }; =20 +/* + * Microblaze Configuration Settings + */ +typedef struct { + bool stackprot; + uint32_t base_vectors; + uint8_t addr_size; + uint8_t use_fpu; + uint8_t use_hw_mul; + bool use_barrel; + bool use_div; + bool use_msr_instr; + bool use_pcmp_instr; + bool use_mmu; + bool dcache_writeback; + bool endi; + bool dopb_bus_exception; + bool iopb_bus_exception; + bool illegal_opcode_exception; + bool opcode_0_illegal; + bool div_zero_exception; + bool unaligned_exceptions; + uint8_t pvr_user1; + uint32_t pvr_user2; + char *version; + uint8_t pvr; +} MicroBlazeCPUConfig; + /** * MicroBlazeCPU: * @env: #CPUMBState @@ -305,32 +333,7 @@ struct MicroBlazeCPU { =20 CPUNegativeOffsetState neg; CPUMBState env; - - /* Microblaze Configuration Settings */ - struct { - bool stackprot; - uint32_t base_vectors; - uint8_t addr_size; - uint8_t use_fpu; - uint8_t use_hw_mul; - bool use_barrel; - bool use_div; - bool use_msr_instr; - bool use_pcmp_instr; - bool use_mmu; - bool dcache_writeback; - bool endi; - bool dopb_bus_exception; - bool iopb_bus_exception; - bool illegal_opcode_exception; - bool opcode_0_illegal; - bool div_zero_exception; - bool unaligned_exceptions; - uint8_t pvr_user1; - uint32_t pvr_user2; - char *version; - uint8_t pvr; - } cfg; + MicroBlazeCPUConfig cfg; }; =20 =20 --=20 2.25.1