Revision | 069d7c5be3ecf870f97acd68b616c292fdb329fe (tree) |
---|---|
Zeit | 2020-04-06 00:38:55 |
Autor | Yoshinori Sato <ysato@user...> |
Commiter | Yoshinori Sato |
fix EXT irq
@@ -59,10 +59,10 @@ static inline int pri(H8300HINTCState *intc, int irq) | ||
59 | 59 | |
60 | 60 | static inline int ext_no(int irq) |
61 | 61 | { |
62 | - if (irq < 7 || irq > 12) { | |
62 | + if (irq < 12 || irq > 17) { | |
63 | 63 | return -1; |
64 | 64 | } |
65 | - return irq - 7; | |
65 | + return irq - 12; | |
66 | 66 | } |
67 | 67 | |
68 | 68 | static void h8300hintc_set_irq(void *opaque, int n_IRQ, int level) |
@@ -40,7 +40,6 @@ typedef struct H83069State { | ||
40 | 40 | uint8_t syscr_val; |
41 | 41 | |
42 | 42 | MemoryRegion *sysmem; |
43 | - bool kernel; | |
44 | 43 | |
45 | 44 | MemoryRegion iram; |
46 | 45 | MemoryRegion iomem1; |
@@ -48,6 +47,7 @@ typedef struct H83069State { | ||
48 | 47 | MemoryRegion flash; |
49 | 48 | MemoryRegion syscr; |
50 | 49 | uint64_t input_freq; |
50 | + uint32_t sci_con; | |
51 | 51 | qemu_irq irq[NR_IRQS]; |
52 | 52 | } H83069State; |
53 | 53 |