From patchwork Thu Jan 3 16:34:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aleksandar Markovic X-Patchwork-Id: 1020387 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=208.118.235.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=rt-rk.com Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43Vtpf55RGz9sBn for ; Fri, 4 Jan 2019 03:36:26 +1100 (AEDT) Received: from localhost ([127.0.0.1]:55878 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gf5yq-0001Nw-9P for incoming@patchwork.ozlabs.org; Thu, 03 Jan 2019 11:36:24 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55924) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gf5y1-0001Jh-El for qemu-devel@nongnu.org; Thu, 03 Jan 2019 11:35:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gf5xw-0007o1-EA for qemu-devel@nongnu.org; Thu, 03 Jan 2019 11:35:33 -0500 Received: from mx2.rt-rk.com ([89.216.37.149]:40262 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gf5xw-0006ex-4X for qemu-devel@nongnu.org; Thu, 03 Jan 2019 11:35:28 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 5FD1F1A1FFE; Thu, 3 Jan 2019 17:34:23 +0100 (CET) X-Virus-Scanned: amavisd-new at rt-rk.com Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 4669F1A1529; Thu, 3 Jan 2019 17:34:23 +0100 (CET) From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Thu, 3 Jan 2019 17:34:04 +0100 Message-Id: <1546533252-26601-1-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH 0/8] target/mips: Update Inter-Thread Communication Unit support 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: smarkovic@wavecomp.com, arikalo@wavecomp.com, amarkovic@wavecomp.com, aurelien@aurel32.net Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Aleksandar Markovic Inter-Thread Communication Unit (or ITU) represents and important part of contemporary MIPS cores. This series extends support for ITU in QEMU. The changes will not be visible for end users immediatelly, but there are plans to enable corresponding features for certain CPUs soon. Break down by patches: - patches 1-3 are cosmetic improvements of CP0-related definitions - patches 4-5 introduce SAARI and SAAR CP0 registers - patch 6 introduce ITU control register ICR0 - patch 7 add usage of SAARI and SAAR registers within ITU - patch 8 adds handling of bus errors within ITU Aleksandar Markovic (3): target/mips: Move comment containing summary of CP0 registers target/mips: Add preprocessor constants for 32 major CP0 registers target/mips: Use preprocessor constants for 32 major CP0 registers Yongbok Kim (5): target/mips: Add fields for SAARI and SAAR CP0 registers target/mips: Provide R/W access to SAARI and SAAR CP0 registers target/mips: Add field and R/W access to ITU control register ICR0 target/mips: Update ITU to utilize SAARI and SAAR CP0 registers target/mips: Update ITU to handle bus errors hw/mips/cps.c | 8 ++ hw/misc/mips_itu.c | 72 +++++++++- include/hw/misc/mips_itu.h | 8 ++ target/mips/cpu.h | 213 +++++++++++++++++----------- target/mips/helper.h | 6 + target/mips/internal.h | 1 + target/mips/machine.c | 6 +- target/mips/op_helper.c | 64 +++++++++ target/mips/translate.c | 338 ++++++++++++++++++++++++++------------------- 9 files changed, 484 insertions(+), 232 deletions(-)