提交 565d2895 编写于 作者: B balrog

Set OOK when OON is set in OSCC register (thanks to BobOfDoom). Correct a...

Set OOK when OON is set in OSCC register (thanks to BobOfDoom).  Correct a fatal typo in timer code.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2785 c046a42c-6fe2-441c-8c8c-71466251a162
上级 d95b2f8d
......@@ -168,8 +168,10 @@ static void pxa2xx_cm_write(void *opaque, target_phys_addr_t addr,
break;
case OSCC:
s->cm_regs[addr >> 2] &= ~0x6e;
s->cm_regs[addr >> 2] &= ~0x6c;
s->cm_regs[addr >> 2] |= value & 0x6e;
if ((value >> 1) & 1) /* OON */
s->cm_regs[addr >> 2] |= 1 << 0; /* Oscillator is now stable */
break;
default:
......
......@@ -364,7 +364,7 @@ static void pxa2xx_timer_tick4(void *opaque)
struct pxa2xx_timer4_s *t = (struct pxa2xx_timer4_s *) opaque;
pxa2xx_timer_info *i = (pxa2xx_timer_info *) t->info;
pxa2xx_timer_tick4(opaque);
pxa2xx_timer_tick(opaque);
if (t->control & (1 << 3))
t->clock = 0;
if (t->control & (1 << 6))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册