Skip to contentSkip to conversation

ppc: remove dead code

PATCH Applied Thomas Monjalon 3 participants 3 messages Apr 21, 2010 – May 18, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc: remove dead code

From: Thomas Monjalon <[email protected]>

This function had been disabled from the beginning:
see 9fddaa0c0cabb610947146a79b4a9a38b0a216e5

cpu_reset() function is in target-ppc/helper.c

---
 hw/ppc.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)
hw/ppc.c +0 -10
index 5baeeaf..2a77eb9 100644
@@ -1085,16 +1085,6 @@ int ppc_dcr_init (CPUState *env, int (*read_error)(int dcrn),
     return 0;
 }
 
-#if 0
-/*****************************************************************************/
-/* Handle system reset (for now, just stop emulation) */
-void cpu_reset(CPUState *env)
-{
-    printf("Reset asked... Stop emulation\n");
-    abort();
-}
-#endif
-
 /*****************************************************************************/
 /* Debug port */
 void PPC_debug_write (void *opaque, uint32_t addr, uint32_t val)
Signature · 1 line
1.7.0.5
#2 lore raw
In reply to Thomas Monjalon
Quoted 8 lines · Thomas Monjalon

From: Thomas Monjalon <[email protected]>

This function had been disabled from the beginning:
see 9fddaa0c0cabb610947146a79b4a9a38b0a216e5

cpu_reset() function is in target-ppc/helper.c

Thanks, applied.

Quoted 33 lines
---
 hw/ppc.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)
hw/ppc.c +0 -10
index 5baeeaf..2a77eb9 100644
@@ -1085,16 +1085,6 @@ int ppc_dcr_init (CPUState *env, int (*read_error)(int dcrn),
     return 0;
 }
 
-#if 0
-/*****************************************************************************/
-/* Handle system reset (for now, just stop emulation) */
-void cpu_reset(CPUState *env)
-{
-    printf("Reset asked... Stop emulation\n");
-    abort();
-}
-#endif
-
 /*****************************************************************************/
 /* Debug port */
 void PPC_debug_write (void *opaque, uint32_t addr, uint32_t val)
Signature · 1 line
1.7.0.5
Signature · 2 lines
Aurelien Jarno                          GPG: 1024D/F1BCDB73
[email protected]                 http://www.aurel32.net