From patchwork Thu Jun 28 03:03:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 140384 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1643023ljj; Wed, 27 Jun 2018 20:04:09 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf62vO3rGLXJjJkffYYCuv7MaOQcRA5DlshHQTRFsO6Qk5ymIyjuA8hzNm3kkYPhdmFWgI0 X-Received: by 2002:a37:7441:: with SMTP id p62-v6mr7480232qkc.262.1530155049721; Wed, 27 Jun 2018 20:04:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530155049; cv=none; d=google.com; s=arc-20160816; b=K33HeDVuuSBS9ZHEsFWUDfQ4MIDZBj4khrIvVtwMBvf2GpyKIITsDAjtc0DFVO3B7/ VTaA5qz1bmxZDq3Il35VFFoBwDSgTMaAvuevT+c3SLg9jjab+ZyD4hdxFNDTFxOIx9Hw KcNVOzWEYLc8STNxBVWlq72wjx71OxswhbfUDt9gfWioSFZ8zLBg3OllEdTNwe11ooSK oibbSV0Xt98jCNfMjSH8aLSVVOffYbANq1cS5YxK0ARXAwDjrZ5l2RH7B4rAPid60pgR cWpLdzS27WKDtuDIAj/B1eZ8E8xjL0kHcGRJA/Bz730TRYtJ0k5iLCsFQCjhduZaFd6Q YLEg== 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:subject :content-transfer-encoding:mime-version:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=OVbL+XBm3syd6+r/Io/2LD6ybzMKtkRMQieLmpXLGPM=; b=qrI/U4C3/GcWcmPXpYciRaRoKbD0dMwbnmuSeYX5Z82SMf8Maz0P/f7KwzE3ydB3nV aHzaD9pnayaWzt76VTZakNbgWRmAwPAV2wRPq0bd91xFwNx1IpIeoEJB1AZHbF2ETQxU 66ngH92sVkC0SvqGwtwj4MTxPrMq4+nyquQCYe0++7sQ6XGPGL6lihvZIazFSMNODJDA GOHCHGuBj0PGW0IVGZ5z2yde+iM2yM2T+XoPp2Bn8hLwJjL9JA05bIcKSS/ytozU2dlI AAudUTTBA5jNB9XZlh0fN61fceZCiL13MAX0wrMhdtQLR97IoAUARTT4uZGF7/Hi66L2 /jLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=f1NTJf46; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id n11-v6si442944qvk.24.2018.06.27.20.04.09 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 27 Jun 2018 20:04:09 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=f1NTJf46; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:34237 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYNE9-0004uY-3C for patch@linaro.org; Wed, 27 Jun 2018 23:04:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYNDe-0004te-JF for qemu-devel@nongnu.org; Wed, 27 Jun 2018 23:03:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYNDa-0007cW-LW for qemu-devel@nongnu.org; Wed, 27 Jun 2018 23:03:38 -0400 Received: from mail-pl0-x243.google.com ([2607:f8b0:400e:c01::243]:39722) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fYNDa-0007cC-Dx for qemu-devel@nongnu.org; Wed, 27 Jun 2018 23:03:34 -0400 Received: by mail-pl0-x243.google.com with SMTP id s24-v6so2007931plq.6 for ; Wed, 27 Jun 2018 20:03:34 -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:mime-version :content-transfer-encoding; bh=OVbL+XBm3syd6+r/Io/2LD6ybzMKtkRMQieLmpXLGPM=; b=f1NTJf46moTWajHdn7YrxIrkjRPIzVRdvotbytc+TnTtyY/N+pRNZIM+6b0/T5o948 Bbd8uY1ynxnyUqUj7skmIJf5vakOfFeDcH32rz7I0Jjnj6gi/sfFpIJvm4Y92AhOLRVe VZ293pc5//ep5s/Pxgw7tFCmv0zrPV8htxgLs= 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:mime-version :content-transfer-encoding; bh=OVbL+XBm3syd6+r/Io/2LD6ybzMKtkRMQieLmpXLGPM=; b=ngSRe2DvU9r2OmiU0YHhWTn36gTkrGp9A5wS126dUpEIPNgc1ISjCy4SQwOrCuK6Z9 ig9Uz9MldGyGjbfckfghldGkMINlGGlz0tC+KUc2VfXPQtQ9YDth0FPQ+wkyN4Fhl1kk +AG9KSM+pTUs5tM+2H1V6IH7vm4deiQq7fIJTUQ1/mk9GO6TL71WkLLvapMtsKNe8s0S BiP32QVcTzjPk1GQr4iL36sdGtMieDhUvmpbDU775Jjod1pcQ0VZaG73ey+No18FHU7O a5cuMoAlP1CEzovjXAFBXvvrvU033SV/2H/HF8F6ZRhCScr+VDkTlUUup5Xk6xqOtL2l 1WlA== X-Gm-Message-State: APt69E0q0wxOJBMxfsqFS3Y+TrWGBjKS2g4ImE7yGkajmD7UufEYnKDN DtLwLeRKL9ML1lrkAtXy7Z4/Nyexm08= X-Received: by 2002:a17:902:9a4b:: with SMTP id x11-v6mr8476359plv.342.1530155012668; Wed, 27 Jun 2018 20:03:32 -0700 (PDT) Received: from cloudburst.twiddle.net (97-126-112-211.tukw.qwest.net. [97.126.112.211]) by smtp.gmail.com with ESMTPSA id y15-v6sm8030489pfm.136.2018.06.27.20.03.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Jun 2018 20:03:31 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 27 Jun 2018 20:03:07 -0700 Message-Id: <20180628030330.15615-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::243 Subject: [Qemu-devel] [PATCH v3 00/23] target/openrisc improvements X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: shorne@gmail.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Changes since v2: * Fix missing mtspr break. * Reorg print_insn_or1k and interrupt logging to the start. * Adjust exit after mtspr; fixing smp kernel crash. * Fix signals patch based on Larent's review. r~ Richard Henderson (23): target/openrisc: Fix mtspr shadow gprs target/openrisc: Add print_insn_or1k target/openrisc: Log interrupts target/openrisc: Remove DISAS_JUMP & DISAS_TB_JUMP target/openrisc: Use exit_tb instead of CPU_INTERRUPT_EXITTB target/openrisc: Fix singlestep_enabled target/openrisc: Link more translation blocks target/openrisc: Split out is_user target/openrisc: Exit the TB after l.mtspr target/openrisc: Form the spr index from tcg target/openrisc: Merge tlb allocation into CPUOpenRISCState target/openrisc: Remove indirect function calls for mmu target/openrisc: Merge mmu_helper.c into mmu.c target/openrisc: Reduce tlb to a single dimension target/openrisc: Fix tlb flushing in mtspr target/openrisc: Fix cpu_mmu_index target/openrisc: Use identical sizes for ITLB and DTLB target/openrisc: Stub out handle_mmu_fault for softmmu target/openrisc: Increase the TLB size target/openrisc: Reorg tlb lookup target/openrisc: Add support in scripts/qemu-binfmt-conf.sh linux-user: Implement signals for openrisc linux-user: Fix struct sigaltstack for openrisc linux-user/openrisc/target_signal.h | 2 +- linux-user/openrisc/target_syscall.h | 28 +-- target/openrisc/cpu.h | 61 +++--- target/openrisc/helper.h | 4 +- linux-user/openrisc/signal.c | 213 +++++++------------ linux-user/signal.c | 2 +- target/openrisc/cpu.c | 17 +- target/openrisc/disas.c | 170 +++++++++++++++ target/openrisc/interrupt.c | 36 +++- target/openrisc/interrupt_helper.c | 35 +-- target/openrisc/machine.c | 44 +--- target/openrisc/mmu.c | 275 +++++++++--------------- target/openrisc/mmu_helper.c | 40 ---- target/openrisc/sys_helper.c | 90 ++++---- target/openrisc/translate.c | 305 ++++++++++----------------- scripts/qemu-binfmt-conf.sh | 10 +- target/openrisc/Makefile.objs | 5 +- 17 files changed, 591 insertions(+), 746 deletions(-) create mode 100644 target/openrisc/disas.c delete mode 100644 target/openrisc/mmu_helper.c -- 2.17.1