qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] ARM invalid co-processor register
@ 2016-05-25  5:44 Karthik
  2016-05-25 12:27 ` Peter Maydell
  0 siblings, 1 reply; 5+ messages in thread
From: Karthik @ 2016-05-25  5:44 UTC (permalink / raw)
  To: QEMU Developers

Hi,

CPU: Cortex R5F

I have this instruction that invalidates the entire data cache

MCR p15, 0, r0, c15, c5, 0


http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0460c/Chdhgibd.html

This instruction generates undefined exception, and further debugging
showed it is because the co-processor register was not implemented.

To get around, I have added the below entry in the cortexr5_cp_reginfo[]
(target-arm/cpu.c)

{
    {.name = "INVALLDC", .cp=15, .opc1 = 0, .crn = 5, .opc2 = 0.
     .access = PL1_W, .type = ARM_CP_NOP | ARM_CP_OVERRIDE},
}

or

I have to add
set_feature(&cpu->env, ARM_FEATURE_DUMMY_C15_REGS);

So, which option is recommended?

Best regards,
Karthik

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-05-25 12:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-25  5:44 [Qemu-devel] ARM invalid co-processor register Karthik
2016-05-25 12:27 ` Peter Maydell
2016-05-25 12:33   ` Karthik
2016-05-25 12:35     ` Peter Maydell
2016-05-25 12:44       ` Karthik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).