From patchwork Fri Feb 2 05:50:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 769174 Delivered-To: patch@linaro.org Received: by 2002:adf:9bca:0:b0:33a:e5bd:fedd with SMTP id e10csp755220wrc; Thu, 1 Feb 2024 21:58:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IGINolakV4AJhy4ccKxFxDBjWATlyDD9n7W2cIiK7XgXdzufmSGE+yX5/R5kbnaxVwjubCY X-Received: by 2002:a05:622a:1816:b0:42b:f813:1753 with SMTP id t22-20020a05622a181600b0042bf8131753mr1631123qtc.15.1706853505283; Thu, 01 Feb 2024 21:58:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1706853505; cv=none; d=google.com; s=arc-20160816; b=GciXOXHqGwA3hv8IatN4XYQnzKqTzd0soYT9mRy6rTRc26klFcapNnV6pDMcDcH3YV mVazf0qTeDc5EM4FV2KRpcENEiGcNLB5+b9V2DPNwNpIUmqmjsYbWXIZ1Ne7Co4hmHGS U4RYMB0MZybMbygtcYTFSgjJTfulU16QpioSoXxvgSrMb2MRvY7MJtgflvmgwIzzfJEQ K9wPgFZvo/mGRJ2xoQ+qe0AJeSmQzpoF1ryy05hHE1Jg5cZTp4Vb2HoBroeFC+2FqrhO NyQfI0XbBna/Otff8oEViqYKpGCgn2bcAiy2rGmI0nqYqqUXiOQe7p1Nk4I0US9qHe82 P4fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=l2JMKKfNQPfNPstuhrU0oB7wgUlx1W4ZgVufmLvBqo8=; fh=msu2+Ny56PKYcA5sBb6Am6kMd0Qi1AoTyF5iTjogVo8=; b=KBLU1cDGFg44MgcQiIjuPF9nJ192p010EbOE+40W5CbqY70VweBnjTU5Zx3YNjnXO1 oycundgBjCSt71kRYwLreLqpkkMuIo2V1tc0+dmR/k4vpcPKZ0mkBHBig1Lwxjkhp2cn V7vYMJrcQ/geDIRoHNfGwN2nETOO62KK0iDn4GlYO2fMdGCPJ1LLosxqTiwS30hsEeI2 GU5q5q6me7DKeGN4cWTu3n62MrfqzCVXBbvImIXbHdXu1Gtdg5ryiLmJIUBwvJsR2CyK KhSo2JzbkI3w56DokfTo4XDlyCgsGfI2CtbJNCOwbXj5ps/k7UJYmJ2bRO2IuIu2K6x9 vf9A==; darn=linaro.org ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R2FDXTol; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=0; AJvYcCX/7AiWFO+nuLXg/F28zPkfJf20TlhzoW3RRKxjy9r3DGav+R2xytDAxs+EpkFNlAkxAp3EvQsS0RSajdqzn1XD Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id l10-20020a05622a174a00b0042a8eb38a04si1257972qtk.610.2024.02.01.21.58.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Feb 2024 21:58:25 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R2FDXTol; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVmSu-0001qU-I0; Fri, 02 Feb 2024 00:51:52 -0500 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 1rVmSr-0001cb-Ch for qemu-devel@nongnu.org; Fri, 02 Feb 2024 00:51:49 -0500 Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rVmSl-00020W-Hu for qemu-devel@nongnu.org; Fri, 02 Feb 2024 00:51:49 -0500 Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-5d7005ea1d0so316895a12.1 for ; Thu, 01 Feb 2024 21:51:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706853100; x=1707457900; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=l2JMKKfNQPfNPstuhrU0oB7wgUlx1W4ZgVufmLvBqo8=; b=R2FDXTolRBD7lsNODVHIyGVDORnQNDLv0ZYIpHg2hc/sURMRCfbHj/xPgaHps+3BeN L/A1620MtN10mM2/lsmSu9ZaZbF01+twpAfVD3yc2bK+WA6svDpCedO8NcFHK1G/O5PF R4pRHW6p/b87zVU4SK7emmrSezcJmBM8CzKLwtPEieDm1OWiSSDZlk/cezv2CA9SI3tp tHcKsh97qrLLwYc4VaStwwvKFpeLub9elaNCuNC3VauibK358IMxIEqbgk7RM8URdb2X T9JRZFq879/FQYzexuW2tyRc+mvZWasKRj/InpjlsLsw8lF1GBMAs8wtTi3LZdCJAKAv tJGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706853100; x=1707457900; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=l2JMKKfNQPfNPstuhrU0oB7wgUlx1W4ZgVufmLvBqo8=; b=QSohyZpgsDqWpwlGUnlp38/bEkwJr1AY3o1AGh6NFjp0hg9a2cWUOUEQucPcm/uZxq KlDcoPOEtBdJRONCMpSjb0z3vcLWTL87zgp3klTO3zhy7b75nxw6Lia33LlTH2Td/WVl uLu0pUo9Qvvc58CUPFGQVnJOCoqP6cC2EKVIbmxZXO0oAVTtUoe6c0S/V6f8U2oTXup6 VSDB6J0VfzsKPyyasW5rJVG7IsQ8Uf0yImTlXGyt2JKsY53HhUnYottuGcl3r3cy2JAi jtEiUTpIkw/N9wqQf7fqHnYCOQRm6QxDMLiOD4HxaM5gJp537ZRx5bnqNxzjYkHdB0bK P98A== X-Gm-Message-State: AOJu0YzkOZ8bKVc3U1JSZ1J2x9YDjo88v+gSMHXO7SKR/jXmvO7s3Pub nGMmjZD3byspMPpWkm7DGt6ZIneWbd4Bk686xLMF3lIpwySkSvsavr+hHeg95QoY1XO/EaTLp00 aujg= X-Received: by 2002:a05:6a20:401f:b0:19c:accf:b669 with SMTP id z31-20020a056a20401f00b0019caccfb669mr1659311pze.26.1706853099879; Thu, 01 Feb 2024 21:51:39 -0800 (PST) Received: from stoup.. ([103.210.27.218]) by smtp.gmail.com with ESMTPSA id h2-20020aa79f42000000b006dab0d72cd0sm715111pfr.214.2024.02.01.21.51.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 21:51:39 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 27/57] target/s390x: Populate CPUClass.mmu_index Date: Fri, 2 Feb 2024 15:50:06 +1000 Message-Id: <20240202055036.684176-29-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240202055036.684176-1-richard.henderson@linaro.org> References: <20240202055036.684176-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::535; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x535.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@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-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/s390x/cpu.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/target/s390x/cpu.c b/target/s390x/cpu.c index 7f123863dc..49a2341acc 100644 --- a/target/s390x/cpu.c +++ b/target/s390x/cpu.c @@ -142,6 +142,11 @@ static bool s390_cpu_has_work(CPUState *cs) return s390_cpu_has_int(cpu); } +static int s390x_cpu_mmu_index(CPUState *cs, bool ifetch) +{ + return s390x_env_mmu_index(cpu_env(cs), ifetch); +} + static void s390_query_cpu_fast(CPUState *cpu, CpuInfoFast *value) { S390CPU *s390_cpu = S390_CPU(cpu); @@ -352,6 +357,7 @@ static void s390_cpu_class_init(ObjectClass *oc, void *data) scc->reset = s390_cpu_reset; cc->class_by_name = s390_cpu_class_by_name, cc->has_work = s390_cpu_has_work; + cc->mmu_index = s390x_cpu_mmu_index; cc->dump_state = s390_cpu_dump_state; cc->query_cpu_fast = s390_query_cpu_fast; cc->set_pc = s390_cpu_set_pc;