Commit a1a617bcde41ad8585289858e1d47dd182f7e2f1

Authored by Grzegorz Jabłoński
1 parent 002c4ac8

Changed PIO messages

Showing 2 changed files with 11 additions and 3 deletions
hw/at91_pio.c
@@ -220,7 +220,11 @@ static void at91_pio_mem_write(void *opaque, target_phys_addr_t offset, @@ -220,7 +220,11 @@ static void at91_pio_mem_write(void *opaque, target_phys_addr_t offset,
220 qemu_set_irq(s->out[i], 1); 220 qemu_set_irq(s->out[i], 1);
221 if(prev != s->odsr) 221 if(prev != s->odsr)
222 { 222 {
223 - printf("Port %c%d set\n",'A' + s->portid, i); 223 + DPRINTF("Port %c%d set\n",'A' + s->portid, i);
  224 + if ((s->portid == 1) && (i == 8))
  225 + printf("LED1 off\n");
  226 + if ((s->portid == 2) && (i == 29))
  227 + printf("LED2 off\n");
224 } 228 }
225 } 229 }
226 break; 230 break;
@@ -233,7 +237,11 @@ static void at91_pio_mem_write(void *opaque, target_phys_addr_t offset, @@ -233,7 +237,11 @@ static void at91_pio_mem_write(void *opaque, target_phys_addr_t offset,
233 qemu_set_irq(s->out[i], 0); 237 qemu_set_irq(s->out[i], 0);
234 if(prev != s->odsr) 238 if(prev != s->odsr)
235 { 239 {
236 - printf("Port %c%d reset\n",'A' + s->portid, i); 240 + DPRINTF("Port %c%d reset\n",'A' + s->portid, i);
  241 + if ((s->portid == 1) && (i == 8))
  242 + printf("LED1 on\n");
  243 + if ((s->portid == 2) && (i == 29))
  244 + printf("LED2 on\n");
237 } 245 }
238 } 246 }
239 break; 247 break;
monitor.c
@@ -560,7 +560,7 @@ static void do_r1(Monitor* mon) @@ -560,7 +560,7 @@ static void do_r1(Monitor* mon)
560 560
561 static void do_r2(Monitor* mon) 561 static void do_r2(Monitor* mon)
562 { 562 {
563 - do_set_gpio(mon, "C5", "1"); 563 + do_set_gpio(mon, "C4", "1");
564 } 564 }
565 565
566 566