aboutsummaryrefslogtreecommitdiff
path: root/hw/mips_jazz.c
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-04-08 19:51:06 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-04-08 19:51:06 +0000
commitc171148cc215d17dc488ce444f27e73a35726cf7 (patch)
treed6b3c077214faaedfae8b928af38746aeb9128a6 /hw/mips_jazz.c
parenta20e31dcf0260ced84729ebab39c0181ae1966d7 (diff)
Simplify PICA 61 emulation
(Hervé Poussineau) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4177 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/mips_jazz.c')
-rw-r--r--hw/mips_jazz.c29
1 files changed, 20 insertions, 9 deletions
diff --git a/hw/mips_jazz.c b/hw/mips_jazz.c
index 910ddb9301..0fadd9143e 100644
--- a/hw/mips_jazz.c
+++ b/hw/mips_jazz.c
@@ -33,24 +33,16 @@
#include "net.h"
#include "scsi.h"
-extern int nographic;
-
#ifdef TARGET_WORDS_BIGENDIAN
#define BIOS_FILENAME "mips_bios.bin"
#else
#define BIOS_FILENAME "mipsel_bios.bin"
#endif
-#ifdef TARGET_MIPS64
-#define PHYS_TO_VIRT(x) ((x) | ~0x7fffffffULL)
-#else
-#define PHYS_TO_VIRT(x) ((x) | ~0x7fffffffU)
-#endif
-#define VIRT_TO_PHYS_ADDEND (-((int64_t)(int32_t)0x80000000))
-
enum jazz_model_e
{
JAZZ_MAGNUM,
+ JAZZ_PICA61,
};
static void main_cpu_reset(void *opaque)
@@ -196,6 +188,10 @@ void mips_jazz_init (int ram_size, int vga_ram_size,
case JAZZ_MAGNUM:
g364fb_mm_init(ds, vga_ram_size, 0, 0x40000000, 0x60000000);
break;
+ case JAZZ_PICA61:
+ isa_vga_mm_init(ds, phys_ram_base + ram_size, ram_size, vga_ram_size,
+ 0x40000000, 0x60000000, 0);
+ break;
default:
break;
}
@@ -268,8 +264,23 @@ void mips_magnum_init (int ram_size, int vga_ram_size,
mips_jazz_init(ram_size, vga_ram_size, ds, cpu_model, JAZZ_MAGNUM);
}
+static
+void mips_pica61_init (int ram_size, int vga_ram_size,
+ const char *boot_device, DisplayState *ds,
+ const char *kernel_filename, const char *kernel_cmdline,
+ const char *initrd_filename, const char *cpu_model)
+{
+ mips_jazz_init(ram_size, vga_ram_size, ds, cpu_model, JAZZ_PICA61);
+}
+
QEMUMachine mips_magnum_machine = {
"magnum",
"MIPS Magnum",
mips_magnum_init,
};
+
+QEMUMachine mips_pica61_machine = {
+ "pica61",
+ "Acer Pica 61",
+ mips_pica61_init,
+};