Patchwork ppc: remove dead code

login
register
mail settings
Submitter Thomas Monjalon
Date April 21, 2010, 9:48 a.m.
Message ID <1271843291-13804-1-git-send-email-thomas_ml@monjalon.net>
Download mbox | patch
Permalink /patch/50648/
State New
Headers show

Comments

Thomas Monjalon - April 21, 2010, 9:48 a.m.
From: Thomas Monjalon <thomas@monjalon.net>

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

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

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
 hw/ppc.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)
Alexander Graf - April 21, 2010, 10:16 a.m.
On 21.04.2010, at 11:48, Thomas Monjalon wrote:

> From: Thomas Monjalon <thomas@monjalon.net>
> 
> This function had been disabled from the beginning:
> see 9fddaa0c0cabb610947146a79b4a9a38b0a216e5
> 
> cpu_reset() function is in target-ppc/helper.c
> 
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>

Acked-by: Alexander Graf <agraf@suse.de>


Alex
Aurelien Jarno - May 18, 2010, 6:50 p.m.
On Wed, Apr 21, 2010 at 11:48:11AM +0200, Thomas Monjalon wrote:
> From: Thomas Monjalon <thomas@monjalon.net>
> 
> This function had been disabled from the beginning:
> see 9fddaa0c0cabb610947146a79b4a9a38b0a216e5
> 
> cpu_reset() function is in target-ppc/helper.c
> 
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>

Thanks, applied.

> ---
>  hw/ppc.c |   10 ----------
>  1 files changed, 0 insertions(+), 10 deletions(-)
> 
> diff --git a/hw/ppc.c b/hw/ppc.c
> index 5baeeaf..2a77eb9 100644
> --- a/hw/ppc.c
> +++ b/hw/ppc.c
> @@ -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)
> -- 
> 1.7.0.5
> 
> 
> 
> 
> 
>

Patch

diff --git a/hw/ppc.c b/hw/ppc.c
index 5baeeaf..2a77eb9 100644
--- a/hw/ppc.c
+++ b/hw/ppc.c
@@ -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)