From patchwork Mon Jun 28 14:35:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 468007 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp4044337jao; Mon, 28 Jun 2021 07:36:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwC39oN8/UKxHYRlqjoOJ/gUWzjGfrL3wqVSznuAxvPcE07PuwtMR3WKj/OPVXrU6lPBlzJ X-Received: by 2002:a05:6402:101a:: with SMTP id c26mr33442236edu.317.1624891012508; Mon, 28 Jun 2021 07:36:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624891012; cv=none; d=google.com; s=arc-20160816; b=gp6z74i2qYtajviT7Ui7YrzLrAOTFaVZJHAQawQ4qapz5CTqcxdQZlw8TQ2qgIJxEp nMJZrc/UtSPKkWkIFWMWJJP9oQa0xTbuoe31EBwojbyQlW+cQ0qsIP4hPKrjz6sqHjJo TMF7TFvG5K+4w9L2ekEK8yEJ9glLx6dR3FAOaPIwJVBRyroYWyJvGH0vwOxPhosyz3gD VKoo6UqH0aTlDGRYWCgnIN/newpMSULZEOjpD0rVY3Z03zNT1q50l2HE/KOlV8xnV8cX m/rxvHyqlj5EuxHaW4EMxgG4a8jC6Thv0b1141FavPZ+qVULtnHW1+ZMFo3vTRqWbkrc EbMw== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=/oq/GCJo3ej444ufvYE37nA1CpuIBiVrhB+99DMw+hU=; b=F1y0H/FDFFdwsHdhJqbl9C4z8GeBbqd6fnVjpuKry0txp8MOjZRXn19/dCVLZy/ELT dyydcRAUMFrDkrbmlzGayAKXXP/3GK6YsFTACwn5LO/HjqlsyDreKVQBix+wVCOcefuR nK8F/3sbWT2Cu0gwIN+PyS1JBxoPmgSKSHZwgLHE4lBjTCYQUIL392NkdjnKJ3/R39Pi QJ5hePBxKvLorUOrlC770iA81MJZ6JsELZW/QVeDVGLxhM7kacK6cpxpBU3Y0IWivcDW +GVpoprFvuBh6Vy/njHwn0E84wyGsFb23FoRvJX1MmXx4zx3wQMDaCCpXXtwAFpI7iIf 9T8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="m/HGN5Ml"; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id em22si11586607ejc.705.2021.06.28.07.36.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Jun 2021 07:36:52 -0700 (PDT) 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="m/HGN5Ml"; 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]:46224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lxsNX-0007eH-Gb for patch@linaro.org; Mon, 28 Jun 2021 10:36:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58276) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxsMf-0007cG-3t for qemu-devel@nongnu.org; Mon, 28 Jun 2021 10:35:57 -0400 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]:46706) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lxsMc-0000bs-Te for qemu-devel@nongnu.org; Mon, 28 Jun 2021 10:35:56 -0400 Received: by mail-pj1-x1033.google.com with SMTP id b5-20020a17090a9905b029016fc06f6c5bso128549pjp.5 for ; Mon, 28 Jun 2021 07:35:54 -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=/oq/GCJo3ej444ufvYE37nA1CpuIBiVrhB+99DMw+hU=; b=m/HGN5MlUzgE6KEdyfeDbS8I8hbnNkAHaqGURau0oRDRQOVyDvf7XODNw962J2sriv mGYGqbg9eG3JPMgk/0+5P+mrVCGBqFSxPKjR1TaGqr0ukyFu+Dje0kqu8PkXnyfWim7o JzcLA32H8fuzyNYqF/vZopRw5BmQp1yGAOCgJBtvuJn3Ute6rR1uckaMblqMnshqjtLB ulvLDSzDD8X1p5hW8s/yliCAVwVUbYDK3xP7V/BhjH1w66d+teJjoyIaNDlazdK3Y+7I mP8fRbVmkoWxCLihxLGraIyBD6NUwBvzWrM9PBW5aNJg/K2hJWgaYobT6WBbM9IawwAD dBnQ== 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=/oq/GCJo3ej444ufvYE37nA1CpuIBiVrhB+99DMw+hU=; b=V8DcyfrfRa+6A7rFhmEG2pHJ2ns/uA+Zf0TYIEnA5c4QCkcbS1CFEQnmLpnRZ43EyC jwbnpIoEuWaJavZM6CEG0XsG5rhE/LozCoPE7RE8ta3FqWpUv+nxlt9W7CbiHch95nMO 4xa42BAz3pE7/+mrEGnZr5yo+lxwBBOEIwXCq0bBEucRIXaFFviL5a2D+WCOVAmX1xPz 4+p+S+X7CB9p2QGzPi4KG7/X3DH63arWT90SDNrM+xmPQmYenHbq9u0LGUWn31sW5Qj8 Mi90GZf6K/IvYH3nX/EH/3ZhEMEMupfiMEfKTfLywwhtRNaWtiqsrygheUibP/a+9Fqv Zk8A== X-Gm-Message-State: AOAM531QeKxD9cjRGdsCwaTUTlatAaraLKdOxkxsEa3e9e1SLCdwE61M 0u205N3WMGbvHYvOrJ4UfhXtVSfRPSd7JA== X-Received: by 2002:a17:902:b210:b029:11a:bf7b:1a83 with SMTP id t16-20020a170902b210b029011abf7b1a83mr23017375plr.84.1624890953688; Mon, 28 Jun 2021 07:35:53 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id k13sm72779pgh.82.2021.06.28.07.35.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Jun 2021 07:35:53 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 2/5] hw/alpha: Provide console information to the PALcode at start-up Date: Mon, 28 Jun 2021 07:35:48 -0700 Message-Id: <20210628143551.2870006-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210628143551.2870006-1-richard.henderson@linaro.org> References: <20210628143551.2870006-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1033; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1033.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 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: peter.maydell@linaro.org, Jason Thorpe Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Jason Thorpe Redefine the a2 register passed by Qemu at start-up to also include some configuration flags, in addition to the CPU count, and define a flag to mirror the "-nographic" option. Signed-off-by: Jason Thorpe Message-Id: <20210613211549.18094-5-thorpej@me.com> Signed-off-by: Richard Henderson --- hw/alpha/dp264.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) -- 2.25.1 diff --git a/hw/alpha/dp264.c b/hw/alpha/dp264.c index 010d22476b..316f0691cd 100644 --- a/hw/alpha/dp264.c +++ b/hw/alpha/dp264.c @@ -72,9 +72,19 @@ static void clipper_init(MachineState *machine) cpus[i] = ALPHA_CPU(cpu_create(machine->cpu_type)); } + /* + * arg0 -> memory size + * arg1 -> kernel entry point + * arg2 -> config word + * + * Config word: bits 0-5 -> ncpus + * bit 6 -> nographics option (for HWRPB CTB) + * + * See init_hwrpb() in the PALcode. + */ cpus[0]->env.trap_arg0 = ram_size; cpus[0]->env.trap_arg1 = 0; - cpus[0]->env.trap_arg2 = smp_cpus; + cpus[0]->env.trap_arg2 = smp_cpus | (!machine->enable_graphics << 6); /* * Init the chipset. Because we're using CLIPPER IRQ mappings,