• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisionfc06cb9219b3aae80770a968184c206f5f139c4d (tree)
Zeit2020-04-13 21:11:19
AutorYoshinori Sato <ysato@user...>
CommiterYoshinori Sato

Log Message

Add missing break

Ändern Zusammenfassung

Diff

--- a/hw/timer/renesas_tpu.c
+++ b/hw/timer/renesas_tpu.c
@@ -161,7 +161,7 @@ static void update_tcnt(RTPUState *s)
161161 elapsed /= s->clk_per_nsec;
162162
163163 for (ch = 5; ch >= 0; ch--) {
164- ir[6] = 0;
164+ ir[ch] = 0;
165165 div = div_rate[ch][FIELD_EX8(s->ch[ch].tcr, TCR, TPSC)];
166166 if (extract32(s->tstr, ch, 1) == 0 || div == 0) {
167167 continue;
@@ -428,12 +428,18 @@ static void tpuc_write(void *opaque, hwaddr addr, uint64_t val, unsigned size)
428428 case 0:
429429 tpu->tstr = val;
430430 set_next_event(tpu);
431+ break;
431432 case 1:
432433 tpu->tsyr = val;
433434 if (tpu->tsyr) {
434435 qemu_log_mask(LOG_GUEST_ERROR,
435436 "renesas_tpu: Sync mode not support.\n");
436437 }
438+ break;
439+ default:
440+ qemu_log_mask(LOG_GUEST_ERROR,
441+ "renesas_tpu: Unknown register %08lx\n",
442+ addr);
437443 }
438444 }
439445