From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOnJK-0005Ne-Hl for qemu-devel@nongnu.org; Fri, 20 Feb 2015 08:08:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YOnJH-0005uk-8R for qemu-devel@nongnu.org; Fri, 20 Feb 2015 08:08:02 -0500 Received: from mailapp01.imgtec.com ([195.59.15.196]:22812) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOnJG-0005ug-Vp for qemu-devel@nongnu.org; Fri, 20 Feb 2015 08:07:59 -0500 From: Leon Alrae Date: Fri, 20 Feb 2015 13:07:43 +0000 Message-ID: <1424437665-16939-1-git-send-email-leon.alrae@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v2 0/2] target-mips: port MIPS CPU to VMState List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: quintela@redhat.com, rth7680@gmail.com, macro@linux-mips.org, amit.shah@redhat.com, afaerber@suse.de, aurelien@aurel32.net Hi, This small patchset converts MIPS CPU to use VMStateDescription: [1/2]: ports all the MIPS CPU fields to new VMStateDescription structure [2/2]: adds MSACSR and uses post_load() to restore *fp_status from *CSR registers. These changes include ported Maciej's updates made for old cpu_load/cpu_save sent some time ago. I tested them by just checking whether the restored guest system still works after savevm/loadvm and migrate commands. This series applies on top of the pending mips-next pull request: http://patchwork.ozlabs.org/patch/439769/ Comments and suggestions are welcome. Thanks, Leon v2: * use cc->vmsd rather than dc->vmsd (Andreas Faerber) * avoid saving TCG-related state (Richard Henderson) Leon Alrae (2): target-mips: replace cpu_save/cpu_load with VMStateDescription target-mips: add missing MSACSR and restore fp_status and hflags target-mips/cpu-qom.h | 4 + target-mips/cpu.c | 1 + target-mips/cpu.h | 19 +- target-mips/machine.c | 571 ++++++++++++++++++++----------------------- target-mips/msa_helper.c | 12 +- target-mips/translate_init.c | 10 +- 6 files changed, 288 insertions(+), 329 deletions(-) -- 2.1.0