Re: [Qemu-devel] [PATCH for-2.5 v2 3/4] mips: add Global Interrupt Controller

2015-10-30 Thread James Hogan
Hi Yongbok, On Tue, Oct 27, 2015 at 05:12:36PM +, Yongbok Kim wrote: > The Global Interrupt Controller (GIC) is responsible for mapping each > internal and external interrupt to the correct location for servicing. > > The internal representation of registers is different from the specificatio

Re: [Qemu-devel] [PATCH for-2.5 v2 3/4] mips: add Global Interrupt Controller

2015-10-29 Thread Leon Alrae
On 27/10/15 17:12, Yongbok Kim wrote: > +static uint64_t gic_read(void *opaque, hwaddr addr, unsigned size) > +{ > +MIPSGICState *gic = (MIPSGICState *) opaque; > +uint32_t vp_index = gic_get_current_vp(gic); > +uint64_t ret = 0; > +int i, base, irq_src; > +uint32_t other_index;

[Qemu-devel] [PATCH for-2.5 v2 3/4] mips: add Global Interrupt Controller

2015-10-27 Thread Yongbok Kim
The Global Interrupt Controller (GIC) is responsible for mapping each internal and external interrupt to the correct location for servicing. The internal representation of registers is different from the specification in order to consolidate information for each GIC Interrupt Sources and Virtual P