m68k: Remove ELF_MACHINE from cpu.h
The only generic code relying on this is linux-user, but linux users' default behaviour of defaulting ELF_MACHINE to ELF_ARCH will handle this. The machine model bootloaders can just pass EM_68K directly, as that is architecture specific code. This removes another architecture specific definition from the global namespace. Cc: Laurent Vivier <laurent@vivier.eu> Cc: Greg Ungerer <gerg@uclinux.org> Reviewed-by: Richard Henderson <rth@twiddle.net> Acked-By: Riku Voipio <riku.voipio@linaro.org> Reviewed-by: Greg Ungerer <gerg@uclinux.org> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
f4fc2bbfa2
commit
45e6b8b61a
@ -70,7 +70,7 @@ static void an5206_init(MachineState *machine)
|
|||||||
}
|
}
|
||||||
|
|
||||||
kernel_size = load_elf(kernel_filename, NULL, NULL, &elf_entry,
|
kernel_size = load_elf(kernel_filename, NULL, NULL, &elf_entry,
|
||||||
NULL, NULL, 1, ELF_MACHINE, 0);
|
NULL, NULL, 1, EM_68K, 0);
|
||||||
entry = elf_entry;
|
entry = elf_entry;
|
||||||
if (kernel_size < 0) {
|
if (kernel_size < 0) {
|
||||||
kernel_size = load_uimage(kernel_filename, &entry, NULL, NULL,
|
kernel_size = load_uimage(kernel_filename, &entry, NULL, NULL,
|
||||||
|
@ -49,7 +49,7 @@ static void dummy_m68k_init(MachineState *machine)
|
|||||||
/* Load kernel. */
|
/* Load kernel. */
|
||||||
if (kernel_filename) {
|
if (kernel_filename) {
|
||||||
kernel_size = load_elf(kernel_filename, NULL, NULL, &elf_entry,
|
kernel_size = load_elf(kernel_filename, NULL, NULL, &elf_entry,
|
||||||
NULL, NULL, 1, ELF_MACHINE, 0);
|
NULL, NULL, 1, EM_68K, 0);
|
||||||
entry = elf_entry;
|
entry = elf_entry;
|
||||||
if (kernel_size < 0) {
|
if (kernel_size < 0) {
|
||||||
kernel_size = load_uimage(kernel_filename, &entry, NULL, NULL,
|
kernel_size = load_uimage(kernel_filename, &entry, NULL, NULL,
|
||||||
|
@ -275,7 +275,7 @@ static void mcf5208evb_init(MachineState *machine)
|
|||||||
}
|
}
|
||||||
|
|
||||||
kernel_size = load_elf(kernel_filename, NULL, NULL, &elf_entry,
|
kernel_size = load_elf(kernel_filename, NULL, NULL, &elf_entry,
|
||||||
NULL, NULL, 1, ELF_MACHINE, 0);
|
NULL, NULL, 1, EM_68K, 0);
|
||||||
entry = elf_entry;
|
entry = elf_entry;
|
||||||
if (kernel_size < 0) {
|
if (kernel_size < 0) {
|
||||||
kernel_size = load_uimage(kernel_filename, &entry, NULL, NULL,
|
kernel_size = load_uimage(kernel_filename, &entry, NULL, NULL,
|
||||||
|
@ -32,8 +32,6 @@
|
|||||||
|
|
||||||
#define MAX_QREGS 32
|
#define MAX_QREGS 32
|
||||||
|
|
||||||
#define ELF_MACHINE EM_68K
|
|
||||||
|
|
||||||
#define EXCP_ACCESS 2 /* Access (MMU) error. */
|
#define EXCP_ACCESS 2 /* Access (MMU) error. */
|
||||||
#define EXCP_ADDRESS 3 /* Address error. */
|
#define EXCP_ADDRESS 3 /* Address error. */
|
||||||
#define EXCP_ILLEGAL 4 /* Illegal instruction. */
|
#define EXCP_ILLEGAL 4 /* Illegal instruction. */
|
||||||
|
Loading…
Reference in New Issue
Block a user