From patchwork Tue Feb 18 19:39:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 183619 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp6491817ile; Tue, 18 Feb 2020 11:46:38 -0800 (PST) X-Google-Smtp-Source: APXvYqwiK+NKHgS/61LdGifPLjYlA6oT8Dre39+SoMnZzWEhyQuczOBnUyi6Mi8Ir5Hb11qvp+f7 X-Received: by 2002:ac8:592:: with SMTP id a18mr19181374qth.107.1582055186070; Tue, 18 Feb 2020 11:46:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582055186; cv=none; d=google.com; s=arc-20160816; b=LQ1kWuzod2wJR9L6r54+3mvd9XZYiex3rYuhxBtRhhs7mrXFkienpmn3ips1sy+7Jl rSRkUjHu7dOeqOVx3S4LZlLsIl5qZ/YkOv2ztpSgJLo7URV+SOvhy0TORAGfRvtoD0xQ 2tV/WhhnCK4/PgrETb6F7oFjRyQr/8XVR3tIWiMWxRYe1uL/2tHNrlCitipuDbLU0Eam FeGUObf0Fh0Cp+VJmnYioULcjotQZbkNrP9RJwWnQDqf1IkT8yVfViUxaISqX77DY4qH uud/g/rnb036ZIwtLh52Z+Jn024asBWPpfEWXyeero2FqGZY+/aW3JbndNc0JBdM5zUY 4K5g== 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=QSNJImV6Sv3hjKepfQ333kr7g+hkYoplwMWy8vc32R4=; b=Xv+5aAX/MbH+ZqeeoAYjuWYq+GbNK8UUeYOtiqoh1FuQoqobQ8bV1RC1smWQA5wiQF t/PT2fWihHR61IDqUSKt/cqfrsaAETadByfAN9LRwWMwifCQgKw1Lyr8MlfI69Ekjv3A ReQMNpKZX3995lc09yM1od2XCVzwCq9a9uBly6/+iGM9kS0rUn69XdDkP601Pt2vQam6 AOrwLFUtRUiH07n+BTWBiHIcQKZseKRVbOe7IV7Oyjo6IUhquWSv6wNt5B64m/jHg5SE oz9wpBLgyEkNej49evVj7SEfk5Gg1QqTKC3nYeIK3jJ4P+rCbJT0HUO+F2i7h+VHejV0 q/0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=p+nUt1NZ; 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=fail (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 h3si2097634qvs.71.2020.02.18.11.46.26 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Feb 2020 11:46:26 -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=fail header.i=@linaro.org header.s=google header.b=p+nUt1NZ; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:41192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j48p7-0004zJ-LH for patch@linaro.org; Tue, 18 Feb 2020 14:46:25 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55417) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j48if-0003r4-RU for qemu-devel@nongnu.org; Tue, 18 Feb 2020 14:39:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j48ie-0004Xz-Rq for qemu-devel@nongnu.org; Tue, 18 Feb 2020 14:39:45 -0500 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]:46356) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j48ie-0004WR-Kb for qemu-devel@nongnu.org; Tue, 18 Feb 2020 14:39:44 -0500 Received: by mail-pf1-x42e.google.com with SMTP id k29so11140217pfp.13 for ; Tue, 18 Feb 2020 11:39:44 -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 :mime-version:content-transfer-encoding; bh=QSNJImV6Sv3hjKepfQ333kr7g+hkYoplwMWy8vc32R4=; b=p+nUt1NZPZDuAmJfkVnK457U7ab00RT3CzSfwMmbu1JFbVFfr0bYGKMDks1xhEa+jR jlwfmZYxHrnCmHI9src3LkTtA9CG5Jomo5lfLSz1IJs5EKnrN+MOcOdNovthW1OiFdjz ujCqSU3gKPIhzrddlFxDQTyNCWHONDeuFWP8h/3Zp2ci1SBMCDq+ZzzxrbC0j9SwpDLq QhVFTr5FErXWnyoN0O+bLOCnwX96wCMwD1qKFt/jxfaWVXuRZHYbzLIMNzWN/rrSghPu o4bp660AsTREEi46fPICnti0+M9SImkYe3Xv29zFj6nes/gTqoLHUo4awtmv2w2Bf1JY 1Z6A== 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=QSNJImV6Sv3hjKepfQ333kr7g+hkYoplwMWy8vc32R4=; b=RXz2oHnZGVqyidS+6PSD/IiiyspTzkpobHC1wI+L1z1WEVcKrPiQVGGwkAzgIagQiH sVkq0t+Qwcf7FgloAeMnKsvDuW2I5ynUi3lI3HGR41JJbi2ans4tgUTRm4aK0vOrN+Kw gLI/1nNdSeRToAvZRYr9uryqMIaGwYt9JLQTIRWnIoDQ+4/sq3eT+OaHMBdw0gDGrXpX yH6iAnG94ulg4iOlqvq4k2+x1XFsOkfx8rakQ3/RWYeYPP7ZoK3WAI8Hquc9cFmYomJr IM6+8AiEz5Eu6HlcurnI1fWzQedbc/mSvrOTa5+xSEGF8ZWMEsr0VEoQjQgzalE3iYAx v5Hw== X-Gm-Message-State: APjAAAX5tAfadVKDoz1GATq1GE9/2z3JIi/2KshS7vmHHKbDz/O9XwJz xJJ2JlNZHQcFW4AgW6IFPdVEcC0bquE= X-Received: by 2002:a63:5f4e:: with SMTP id t75mr23941327pgb.7.1582054783296; Tue, 18 Feb 2020 11:39:43 -0800 (PST) Received: from localhost.localdomain (97-126-123-70.tukw.qwest.net. [97.126.123.70]) by smtp.gmail.com with ESMTPSA id y15sm424395pgj.78.2020.02.18.11.39.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Feb 2020 11:39:42 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 9/9] hw/hppa/dino: Do not accept accesses to registers 0x818 and 0x82c Date: Tue, 18 Feb 2020 11:39:29 -0800 Message-Id: <20200218193929.11404-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200218193929.11404-1-richard.henderson@linaro.org> References: <20200218193929.11404-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::42e 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, Helge Deller , =?utf-8?q?Phil?= =?utf-8?q?ippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé Register 0x818 is documented as 'undefined', and register 0x82c is not documented. Refuse their access. Acked-by: Helge Deller Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20200218063355.18577-5-f4bug@amsat.org> Signed-off-by: Richard Henderson --- hw/hppa/dino.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.20.1 diff --git a/hw/hppa/dino.c b/hw/hppa/dino.c index be799aad43..2b1b38c58a 100644 --- a/hw/hppa/dino.c +++ b/hw/hppa/dino.c @@ -181,7 +181,9 @@ static bool dino_chip_mem_valid(void *opaque, hwaddr addr, case DINO_IO_ADDR_EN: case DINO_PCI_IO_DATA: case DINO_TOC_ADDR: - case DINO_GMASK ... DINO_TLTIM: + case DINO_GMASK ... DINO_PCISTS: + case DINO_MLTIM ... DINO_PCIWOR: + case DINO_TLTIM: ret = true; break; case DINO_PCI_IO_DATA + 2: