Revision | fc06cb9219b3aae80770a968184c206f5f139c4d (tree) |
---|---|
Zeit | 2020-04-13 21:11:19 |
Autor | Yoshinori Sato <ysato@user...> |
Commiter | Yoshinori Sato |
Add missing break
@@ -161,7 +161,7 @@ static void update_tcnt(RTPUState *s) | ||
161 | 161 | elapsed /= s->clk_per_nsec; |
162 | 162 | |
163 | 163 | for (ch = 5; ch >= 0; ch--) { |
164 | - ir[6] = 0; | |
164 | + ir[ch] = 0; | |
165 | 165 | div = div_rate[ch][FIELD_EX8(s->ch[ch].tcr, TCR, TPSC)]; |
166 | 166 | if (extract32(s->tstr, ch, 1) == 0 || div == 0) { |
167 | 167 | continue; |
@@ -428,12 +428,18 @@ static void tpuc_write(void *opaque, hwaddr addr, uint64_t val, unsigned size) | ||
428 | 428 | case 0: |
429 | 429 | tpu->tstr = val; |
430 | 430 | set_next_event(tpu); |
431 | + break; | |
431 | 432 | case 1: |
432 | 433 | tpu->tsyr = val; |
433 | 434 | if (tpu->tsyr) { |
434 | 435 | qemu_log_mask(LOG_GUEST_ERROR, |
435 | 436 | "renesas_tpu: Sync mode not support.\n"); |
436 | 437 | } |
438 | + break; | |
439 | + default: | |
440 | + qemu_log_mask(LOG_GUEST_ERROR, | |
441 | + "renesas_tpu: Unknown register %08lx\n", | |
442 | + addr); | |
437 | 443 | } |
438 | 444 | } |
439 | 445 |