Commit d5296cb507927ffe3df2716f780b5a3b600ed402

Authored by blueswir1
1 parent df33e639

Fix SS-600MP led device typos


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3756 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
hw/slavio_misc.c
... ... @@ -56,7 +56,7 @@ typedef struct MiscState {
56 56 #define MISC_SIZE 1
57 57 #define SYSCTRL_MAXADDR 3
58 58 #define SYSCTRL_SIZE (SYSCTRL_MAXADDR + 1)
59   -#define LED_MAXADDR 2
  59 +#define LED_MAXADDR 1
60 60 #define LED_SIZE (LED_MAXADDR + 1)
61 61  
62 62 #define MISC_MASK 0x0fff0000
... ... @@ -281,7 +281,7 @@ static void slavio_led_mem_writes(void *opaque, target_phys_addr_t addr,
281 281 val);
282 282 switch (saddr) {
283 283 case 0:
284   - s->sysctrl = val;
  284 + s->leds = val;
285 285 break;
286 286 default:
287 287 break;
... ...