blob: ab4a3d6ceee1015f55beab8512836b9642ef7ec4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
graphic: 0.858
device: 0.805
vnc: 0.766
files: 0.684
semantic: 0.679
PID: 0.582
socket: 0.488
debug: 0.484
other: 0.383
KVM: 0.381
performance: 0.377
network: 0.360
boot: 0.359
permissions: 0.232
PPC msgsnd for DOORBELL CRITICAL masked by MSR[EE] instead of MSR[CE]
Description of problem:
When executing PPC instruction "msgsnd r3. with r3 = 0x08000001" an DOORBELL CRITICAL exception is raised on core number 1. But this exception is masked by MSR\[EE\] bit, the MSR\[EE\] should be set to 1 in core1 to get this exception. But the NXP E500MCRM.pdf reference manual indicates that MSR\[CE\] is the mask bit for DOORBELL_CRITICAL Exception.
Additional information:
In qemu-8.1.2/target/ppc/excp_helper.c i try to change in ppc_next_unmasked_interrupt_generic function:
```
if (FIELD_EX64(env->msr, MSR, CE)) {
/* Critical doorbell */
if (env->pending_interrupts & PPC_INTERRUPT_CDOORBELL) { <- move this part from (async_deliver != 0)
return PPC_INTERRUPT_CDOORBELL;
}
/* External critical interrupt */
if (env->pending_interrupts & PPC_INTERRUPT_CEXT) {
return PPC_INTERRUPT_CEXT;
}
}
```
And it seems to work in my case.
|