ppc.c (bb2b04503497608cdc5fa4c990d26e936f9d2102) | ppc.c (a1f7f97b950a46393b0e55a9a0082e70f540cbbd) |
---|---|
1/* 2 * QEMU generic PowerPC hardware System Emulator 3 * 4 * Copyright (c) 2003-2007 Jocelyn Mayer 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 988 unchanged lines hidden (view full) --- 997 next++; 998 LOG_TB("%s: TCR " TARGET_FMT_lx " TSR " TARGET_FMT_lx "\n", __func__, 999 env->spr[SPR_40x_TCR], env->spr[SPR_40x_TSR]); 1000 switch ((env->spr[SPR_40x_TSR] >> 30) & 0x3) { 1001 case 0x0: 1002 case 0x1: 1003 timer_mod(ppc40x_timer->wdt_timer, next); 1004 ppc40x_timer->wdt_next = next; | 1/* 2 * QEMU generic PowerPC hardware System Emulator 3 * 4 * Copyright (c) 2003-2007 Jocelyn Mayer 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 988 unchanged lines hidden (view full) --- 997 next++; 998 LOG_TB("%s: TCR " TARGET_FMT_lx " TSR " TARGET_FMT_lx "\n", __func__, 999 env->spr[SPR_40x_TCR], env->spr[SPR_40x_TSR]); 1000 switch ((env->spr[SPR_40x_TSR] >> 30) & 0x3) { 1001 case 0x0: 1002 case 0x1: 1003 timer_mod(ppc40x_timer->wdt_timer, next); 1004 ppc40x_timer->wdt_next = next; |
1005 env->spr[SPR_40x_TSR] |= 1 << 31; | 1005 env->spr[SPR_40x_TSR] |= 1U << 31; |
1006 break; 1007 case 0x2: 1008 timer_mod(ppc40x_timer->wdt_timer, next); 1009 ppc40x_timer->wdt_next = next; 1010 env->spr[SPR_40x_TSR] |= 1 << 30; 1011 if ((env->spr[SPR_40x_TCR] >> 27) & 0x1) { 1012 ppc_set_irq(cpu, PPC_INTERRUPT_WDT, 1); 1013 } --- 373 unchanged lines hidden --- | 1006 break; 1007 case 0x2: 1008 timer_mod(ppc40x_timer->wdt_timer, next); 1009 ppc40x_timer->wdt_next = next; 1010 env->spr[SPR_40x_TSR] |= 1 << 30; 1011 if ((env->spr[SPR_40x_TCR] >> 27) & 0x1) { 1012 ppc_set_irq(cpu, PPC_INTERRUPT_WDT, 1); 1013 } --- 373 unchanged lines hidden --- |