Received: from eggs.gnu.org ([208.118.235.92]:38778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMRgU-0002aX-EM for qemu-devel@nongnu.org; Thu, 11 Oct 2012 18:56:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMRgT-0003sI-0A for qemu-devel@nongnu.org; Thu, 11 Oct 2012 18:56:54 -0400 Received: from cantor2.suse.de ([195.135.220.15]:49220 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMRgS-0003s9-Ps for qemu-devel@nongnu.org; Thu, 11 Oct 2012 18:56:52 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Fri, 12 Oct 2012 00:56:32 +0200 Message-Id: <1349996197-11054-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v2 0/5] target-mips: Preparations for CPUState part 4b series List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Richard Henderson , Eric Johnson , =?UTF-8?q?Andreas=20F=C3=A4rber?= , aurelien@aurel32.net, Jia Liu Hello Aur=C3=A9lien, This series picks up some preparatory patches for QOM CPUState refactorin= g, originally posted in May. They still applied cleanly, but I optimized the= m a bit and expanded the explanations. In short it is about MIPSCPU vs. CPUMIPSState; more fields will be moved from CPU_COMMON macro to CPUState struct, and to access CPUState we need a MIPSCPU. Thus MIPSCPU is preferable for arguments of static helpers (not TCG helpers) because we save some redundant accessor/cast macros. Can you please ack/apply and keep in mind for the current patch review? Available for testing from: git://github.com/afaerber/qemu-cpu.git qom-cpu-mips https://github.com/afaerber/qemu-cpu/commits/qom-cpu-mips Regards, Andreas Cc: Aur=C3=A9lien Jarno Cc: Jia Liu Cc: Eric Johnson Cc: Richard Henderson v1 -> v2: * Cherry-picked from my CPUState part 4 series * Avoided calling mips_env_get_cpu() in both if branches of helper_m[t]tc= 0_tchalt() * Prepended patch to clean up resulting variable naming mess * Placed variable declarations in the closest block (requested by Alex el= sewhere) Andreas F=C3=A4rber (5): target-mips: Clean up other_cpu in helper_{d,e}vpe() target-mips: Pass MIPSCPU to mips_tc_wake() target-mips: Pass MIPSCPU to mips_vpe_is_wfi() target-mips: Pass MIPSCPU to mips_tc_sleep() target-mips: Pass MIPSCPU to mips_vpe_sleep() target-mips/op_helper.c | 63 +++++++++++++++++++++++++++++------------= ------ 1 Datei ge=C3=A4ndert, 39 Zeilen hinzugef=C3=BCgt(+), 24 Zeilen entfernt= (-) --=20 1.7.10.4