Commit a702b35388c307ce2364691e2edc14094701c81e

Authored by bellard
1 parent 1e414679

fixed invalid constant


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3610 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
hw/slavio_timer.c
@@ -125,7 +125,7 @@ static uint32_t slavio_timer_mem_readl(void *opaque, target_phys_addr_t addr) @@ -125,7 +125,7 @@ static uint32_t slavio_timer_mem_readl(void *opaque, target_phys_addr_t addr)
125 // of counter (user mode) 125 // of counter (user mode)
126 slavio_timer_get_out(s); 126 slavio_timer_get_out(s);
127 if (slavio_timer_is_user(s)) // read user timer LSW 127 if (slavio_timer_is_user(s)) // read user timer LSW
128 - ret = s->count & 0xffffffe00; 128 + ret = s->count & 0xfffffe00;
129 else // read limit 129 else // read limit
130 ret = (s->count & 0x7ffffe00) | s->reached; 130 ret = (s->count & 0x7ffffe00) | s->reached;
131 break; 131 break;