mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
sparc merge (Blue Swirl)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1098 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
023fcb9507
commit
8d5f07fa3b
23 changed files with 492 additions and 592 deletions
|
@ -6,3 +6,8 @@
|
|||
|
||||
- The PowerPC Open Hack'Ware Open Firmware Compatible BIOS is
|
||||
available at http://site.voila.fr/jmayer/OpenHackWare/index.htm.
|
||||
|
||||
- Proll is a GPL'd boot PROM for Sparc JavaStations
|
||||
(http://people.redhat.com/zaitcev/linux/).
|
||||
Applying proll.patch allows circumventing some bugs and enables
|
||||
faster kernel load through a hack.
|
||||
|
|
BIN
pc-bios/proll.bin
Normal file
BIN
pc-bios/proll.bin
Normal file
Binary file not shown.
50
pc-bios/proll.patch
Normal file
50
pc-bios/proll.patch
Normal file
|
@ -0,0 +1,50 @@
|
|||
diff -ru proll_18.orig/mrcoffee/main.c proll_18/mrcoffee/main.c
|
||||
--- proll_18.orig/mrcoffee/main.c 2002-09-13 16:16:59.000000000 +0200
|
||||
+++ proll_18/mrcoffee/main.c 2004-09-26 11:52:23.000000000 +0200
|
||||
@@ -101,6 +101,7 @@
|
||||
le_probe();
|
||||
init_net();
|
||||
|
||||
+#ifdef ORIG
|
||||
#if 0 /* RARP */
|
||||
if (rarp() != 0) fatal();
|
||||
/* printrarp(); */
|
||||
@@ -117,13 +118,20 @@
|
||||
xtoa(myipaddr, fname, 8);
|
||||
if (load(boot_rec.bp_siaddr, fname) != 0) fatal();
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
romvec = init_openprom(bb.nbanks, bb.bankv, hiphybas);
|
||||
|
||||
printk("Memory used: virt 0x%x:0x%x[%dK] iomap 0x%x:0x%x\n",
|
||||
PROLBASE, (int)cmem.curp, ((unsigned) cmem.curp - PROLBASE)/1024,
|
||||
(int)cio.start, (int)cio.curp);
|
||||
+#ifdef ORIG
|
||||
set_timeout(5); while (!chk_timeout()) { } /* P3: let me read */
|
||||
+#else
|
||||
+ printk("loading kernel:");
|
||||
+ i = ld_bypass(0x20000000);
|
||||
+ printk(" done, size %d\n", i);
|
||||
+#endif
|
||||
|
||||
{
|
||||
void (*entry)(void *, int) = (void (*)(void*, int)) LOADBASE;
|
||||
diff -ru proll_18.orig/mrcoffee/openprom.c proll_18/mrcoffee/openprom.c
|
||||
--- proll_18.orig/mrcoffee/openprom.c 2002-09-13 16:17:03.000000000 +0200
|
||||
+++ proll_18/mrcoffee/openprom.c 2004-09-21 21:27:16.000000000 +0200
|
||||
@@ -144,10 +144,14 @@
|
||||
};
|
||||
|
||||
static int cpu_nctx = NCTX_SWIFT;
|
||||
+static int cpu_cache_line_size = 0x20;
|
||||
+static int cpu_cache_nlines = 0x200;
|
||||
static struct property propv_cpu[] = {
|
||||
{"name", "STP1012PGA", sizeof("STP1012PGA") },
|
||||
{"device_type", "cpu", 4 },
|
||||
{"mmu-nctx", (char*)&cpu_nctx, sizeof(int)},
|
||||
+ {"cache-line-size", (char*)&cpu_cache_line_size, sizeof(int)},
|
||||
+ {"cache-nlines", (char*)&cpu_cache_nlines, sizeof(int)},
|
||||
{NULL, NULL, -1}
|
||||
};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue