qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-discuss] Cortex A9 MMU enabling and processor hangs


From: mar.krzeminski
Subject: Re: [Qemu-discuss] Cortex A9 MMU enabling and processor hangs
Date: Sat, 27 Jun 2015 16:48:18 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

I know why it failed ( I forgot to add internal SRAM to qemu emulation, so TLB was nowhere).
Valid question is that how can I easily debug such problems in qemu?
GDB backed seem to have problem with debugging low level cpu initialization?
Is there any other way or documentation how to do it?

W dniu 27.06.2015 o 14:19, mar.krzeminski pisze:
Hi all,

It is my first post here, and first question.
I am creating new hw board wirt cortex a-9 CPU.
I have code in my SPL:

  asm volatile ("mrc p15, 0, %0, c1, c0, 0" : "=r" (a) : ); // Read SCTLR
  a = a | (1 << 2) | (1 << 0);
  asm volatile ("mcr p15, 0, %0, c1, c0, 0" : : "r" (a)); // Write SCTLR

After writing to SCTLR cpu seems to hangs. On real hardware this code works.
My question is how can I debug what is wrong in here?

Regards,
Marcin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]