m68k: replace cpu_m68k_init() with cpu_generic_init()
commitf47cf4e31cac4e670e26226b549c379c982e223a
authorIgor Mammedov <imammedo@redhat.com>
Thu, 24 Aug 2017 16:31:34 +0000 (24 18:31 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 1 Sep 2017 14:54:24 +0000 (1 11:54 -0300)
treee68ee0bc9a917dce78b6f6078d4f457c6b098e58
parent8fc24ad5dd081e5655ad0e87fbea2e0812235f5a
m68k: replace cpu_m68k_init() with cpu_generic_init()

call register_m68k_insns() at realize time which makes
cpu_m68k_init() typical object creation function.
As result we can replace it with cpu_generic_init()
which does the same job, reducing code duplication a bit.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Tested-by: Thomas Huth <huth@tuxfamily.org>
Acked-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <1503592308-93913-12-git-send-email-imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/m68k/an5206.c
hw/m68k/mcf5208.c
target/m68k/cpu.c
target/m68k/cpu.h
target/m68k/helper.c