openpic: s/opp->nb_irqs 1/opp>nb_cpus - 1/
"opp->nb_irqs-1" would have been a minor coding style error,but putting in one space but not the other makes it lookconfusingly like a numeric literal "-1".
Signed-off-by: Scott Wood <scottwood@freescale.com>...
openpic: don't crash on a register access without a CPU context
If we access a register via the QEMU memory inspection commands (e.g."xp") rather than from guest code, we won't have a CPU context.Gracefully fail to access the register in that case, rather than...
openpic: fix coding style issues
This patch fixes the following coding style violations:
- structs have to be typedef and be CamelCase - if()s are always surrounded by curly braces
Signed-off-by: Alexander Graf <agraf@suse.de>
PPC: Reset qemu timers when guest reset
This patch install the timer reset handler. This will be called whenthe guest is reset.
Signed-off-by: Bharat Bhushan <bharat.bhushan@freescale.com>[agraf: adjust for QOM'ification]Signed-off-by: Alexander Graf <agraf@suse.de>
openpic: fix debug prints
Fix various format errors when debug prints are enabled. Alsocause error checking to happen even when debug prints are notenabled, and consistently use 0x for hex output.
Signed-off-by: Scott Wood <scottwood@freescale.com>[agraf: adjust for more recent code base, prettify DPRINTF macro]...
openpic: lower interrupt when reading the MSI register
This will stop things from breaking once it's properly treated as alevel-triggered interrupt. Note that it's the MPIC's MSI cascadeinterrupts that are level-triggered; the individual MSIs areedge-triggered....
openpic: symbolicize some magic numbers
Deefine symbolic names for some register bits, and use some thathave already been defined.
Also convert some register values from hex to decimal when it improvesreadability.
IPVP_PRIORITY_MASK is corrected from (0x1F << 16) to (0xF << 16), in...
openpic: remove pcsr (CPU sensitivity register)
I could not find this register in any spec (FSL, IBM, or OpenPIC)and the code doesn't do anything with it but initialize, save,or restore it.
Signed-off-by: Scott Wood <scottwood@freescale.com>Signed-off-by: Alexander Graf <agraf@suse.de>
openpic: support large vectors on FSL mpic
Previously only the spurious vector was sized appropriatelyto the openpic model.
Also, instances of "IPVP_VECTOR(opp->spve)" were replace withjust "opp->spve", as opp->spve is already just a vector and notan IVPR....
openpic: BRR1 is not a CPU-specific register.
It's in the address range that normally contains a magic redirectionto the CPU-specific region of the curretn CPU, but it isn't actuallya per-CPU register. On real hardware BRR1 shows up only at 0x40000,not at 0x60000 or other non-magic per-CPU areas. Plus, this makes...
View revisions
Also available in: Atom