From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aozfN-0000p8-Dk for qemu-devel@nongnu.org; Sat, 09 Apr 2016 16:39:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aozfJ-0008SN-DY for qemu-devel@nongnu.org; Sat, 09 Apr 2016 16:39:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43137) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aozfJ-0008Rg-81 for qemu-devel@nongnu.org; Sat, 09 Apr 2016 16:39:33 -0400 From: Eduardo Habkost Date: Sat, 9 Apr 2016 17:37:43 -0300 Message-Id: <1460234267-20523-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH for-2.7 0/4] cpu: Finally remove cpudef_init() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= , "Michael S. Tsirkin" , Marcel Apfelbaum , Igor Mammedov The only reason cpudef_init() still exists is the qemu_hw_version()-based model_id hack at x86_cpudef_setup(). Move the model_id hack to machine compat_props so we can make the model_id field constant at the CPU model table, and then remove cpudef_init() completely. Eduardo Habkost (4): osdep: Move default qemu_hw_version() value to a macro pc: Set CPU model-id on compat_props for pc <= 2.4 target-i386: Set constant model_id for qemu63/qemu32/athlon cpu: Eliminate cpudef_init(), cpudef_setup() arch_init.c | 7 ------- bsd-user/main.c | 3 --- hw/i386/pc_piix.c | 12 +++++++++++- include/hw/i386/pc.h | 29 +++++++++++++++++++++++++++++ include/qemu/osdep.h | 9 +++++++++ include/sysemu/arch_init.h | 1 - linux-user/main.c | 3 --- target-i386/cpu.c | 27 +++------------------------ target-i386/cpu.h | 2 -- util/osdep.c | 9 +-------- vl.c | 7 ------- 11 files changed, 53 insertions(+), 56 deletions(-) -- 2.1.0