Skip to contentSkip to conversation

[6748] Implement large pages

Qemu-devel Blue Swirl 1 participant 1 message Mar 7, 2009

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

Revision: 6748

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6748
Author:   blueswir1
Date:     2009-03-07 20:51:18 +0000 (Sat, 07 Mar 2009)

Log Message:
-----------
Implement large pages

The current SLB/PTE code does not support large pages, which are required by Linux, as it boots up with the kernel regions up as large.

This patch implements large page support, so we can run Linux.

Modified Paths:
--------------
trunk/target-ppc/cpu.h
trunk/target-ppc/helper.c

Modified: trunk/target-ppc/cpu.h
===================================================================

target-ppc/cpu.h +1 -0
@@ -677,6 +677,7 @@
 typedef struct mmu_ctx_t mmu_ctx_t;
 struct mmu_ctx_t {
     target_phys_addr_t raddr;      /* Real address              */
+    target_phys_addr_t eaddr;      /* Effective address         */
     int prot;                      /* Protection bits           */
     target_phys_addr_t pg_addr[2]; /* PTE tables base addresses */
     target_ulong ptem;             /* Virtual segment ID | API  */

Modified: trunk/target-ppc/helper.c
===================================================================

target-ppc/helper.c +48 -30

176 lines not on this page · raw message