From: <bob...@us...> - 2007-07-23 12:47:40
|
Revision: 1205 http://svn.sourceforge.net/hackndev/?rev=1205&view=rev Author: bobofdoom Date: 2007-07-23 05:47:37 -0700 (Mon, 23 Jul 2007) Log Message: ----------- QEMU: Assign to PSSR and RCSR don't OR them. Otherwise we will have multiple reset flags incorrectly set when there can only be one. Modified Paths: -------------- qemu/trunk/hw/pxa2xx.c Modified: qemu/trunk/hw/pxa2xx.c =================================================================== --- qemu/trunk/hw/pxa2xx.c 2007-07-23 12:07:58 UTC (rev 1204) +++ qemu/trunk/hw/pxa2xx.c 2007-07-23 12:47:37 UTC (rev 1205) @@ -261,8 +261,8 @@ { struct pxa2xx_state_s *s = (struct pxa2xx_state_s *) opaque; cpu_reset(s->env); - s->pm_regs[PSSR >> 2] |= 0x1; /* Set SSS */ - s->pm_regs[RCSR >> 2] |= 0x4; /* Set SMR */ + s->pm_regs[PSSR >> 2] = 0x1; /* Set SSS */ + s->pm_regs[RCSR >> 2] = 0x4; /* Set SMR */ s->pm_regs[PEDR >> 2] = 0x0; //s->pm_regs[PSPR >> 2] |= 0x4; printf("reset PC=%x PSPR=%x\n", s->env->regs[15], s->pm_regs[PSPR>>2]); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |