Skip to contentSkip to conversation

qemu vnc.c

Qemu-devel Fabrice Bellard 4 participants 5 messages Aug 24, 2006 – Aug 25, 2006

lore
Share & tools
lore
#1 lore raw

[Qemu-devel] Run Qemu ARM system without MMU (MMUless)

Hi all,
If I want to run Qemu ARM system to simulate a system without MMU (MMU less), how can I do? Thanks for your responses and best reagards,
Tieu

---------------------------------
Stay in the know. Pulse on the new Yahoo.com. Check it out.

#2 lore raw

Re: [Qemu-devel] Run Qemu ARM system without MMU (MMUless)

Quoted 3 lines · Tieu Ma Dau

If I want to run Qemu ARM system to simulate a system without MMU (MMU less), how can I do? Thanks for your responses and best reagards,
Tieu

Hi,

according to target-arm/helper.c the MMU is enabled/disabled with coprocessor 15.

    if ((env->cp15.c1_sys & 1) == 0) {
        /* MMU diusabled.  */
        *phys_ptr = address;
        *prot = PAGE_READ | PAGE_WRITE;
    } else {
        /* Pagetable walk.  */
    }

It is disabled when QEMU starts...

--
Thorsten

#3 lore raw

Re: [Qemu-devel] Run Qemu ARM system without MMU (MMUless)

Thorsten Zitterell <[email protected]> wrote:according to target-arm/helper.c the MMU is enabled/disabled with coprocessor 15.

     if ((env->cp15.c1_sys & 1) == 0) {
         /* MMU diusabled.  */
         *phys_ptr = address;
         *prot = PAGE_READ | PAGE_WRITE;
     } else {
         /* Pagetable walk.  */
     }

It is disabled when QEMU starts...
Hi,
Thanks for your response but I'm a newbie in ARM Linux and ARM CPU. Could you explain more clearly how can I disable this. Thanks a lot
Tieu

---------------------------------
Get your email and more, right on the new Yahoo.com

#4 lore raw

Re: [Qemu-devel] Run Qemu ARM system without MMU (MMUless)

Quoted 2 lines

Thanks for your response but I'm a newbie in ARM Linux and ARM CPU. Could
you explain more clearly how can I disable this. Thanks a lot

Why exactly do you need to simulate a CPU without an MMU?

As other people have pointed out the MMU has no effect until it is enabled. Nothing is forcing your OS to use the MMU.

Paul