/[gxemul]/upstream/0.4.4/src/include/cpu_ppc.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /upstream/0.4.4/src/include/cpu_ppc.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/src/include/cpu_ppc.h revision 24 by dpavlin, Mon Oct 8 16:19:56 2007 UTC upstream/0.4.4/src/include/cpu_ppc.h revision 35 by dpavlin, Mon Oct 8 16:21:26 2007 UTC
# Line 2  Line 2 
2  #define CPU_PPC_H  #define CPU_PPC_H
3    
4  /*  /*
5   *  Copyright (C) 2005-2006  Anders Gavare.  All rights reserved.   *  Copyright (C) 2005-2007  Anders Gavare.  All rights reserved.
6   *   *
7   *  Redistribution and use in source and binary forms, with or without   *  Redistribution and use in source and binary forms, with or without
8   *  modification, are permitted provided that the following conditions are met:   *  modification, are permitted provided that the following conditions are met:
# Line 28  Line 28 
28   *  SUCH DAMAGE.   *  SUCH DAMAGE.
29   *   *
30   *   *
31   *  $Id: cpu_ppc.h,v 1.64 2006/03/05 16:51:55 debug Exp $   *  $Id: cpu_ppc.h,v 1.69 2007/02/16 19:57:56 debug Exp $
32   */   */
33    
34  #include "misc.h"  #include "misc.h"
# Line 65  struct ppc_cpu_type_def { Line 65  struct ppc_cpu_type_def {
65  #define PPC_603                 4  #define PPC_603                 4
66  #define PPC_NO_DEC              8       /*  No DEC (decrementer) SPR  */  #define PPC_NO_DEC              8       /*  No DEC (decrementer) SPR  */
67    
68  /*  TODO: Most of these just bogus  */  /*
69     *  TODO: Most of these just bogus
70     */
71    
72  #define PPC_CPU_TYPE_DEFS       {                                       \  #define PPC_CPU_TYPE_DEFS       {                                       \
73          { "PPC405GP",   0x40110000, 32, PPC_NOFP|PPC_NO_DEC,            \          { "PPC405GP",   0x40110000, 32, PPC_NOFP|PPC_NO_DEC,            \
# Line 198  struct ppc_cpu { Line 200  struct ppc_cpu {
200    
201    
202  /*  cpu_ppc.c:  */  /*  cpu_ppc.c:  */
203    int ppc_run_instr(struct cpu *cpu);
204    int ppc32_run_instr(struct cpu *cpu);
205  void ppc_exception(struct cpu *cpu, int exception_nr);  void ppc_exception(struct cpu *cpu, int exception_nr);
206  void ppc_update_translation_table(struct cpu *cpu, uint64_t vaddr_page,  void ppc_update_translation_table(struct cpu *cpu, uint64_t vaddr_page,
207          unsigned char *host_page, int writeflag, uint64_t paddr_page);          unsigned char *host_page, int writeflag, uint64_t paddr_page);
# Line 213  int ppc_memory_rw(struct cpu *cpu, struc Line 217  int ppc_memory_rw(struct cpu *cpu, struc
217  int ppc_cpu_family_init(struct cpu_family *);  int ppc_cpu_family_init(struct cpu_family *);
218    
219  /*  memory_ppc.c:  */  /*  memory_ppc.c:  */
220  int ppc_translate_address(struct cpu *cpu, uint64_t vaddr,  int ppc_translate_v2p(struct cpu *cpu, uint64_t vaddr,
221          uint64_t *return_addr, int flags);          uint64_t *return_addr, int flags);
222    
223  #endif  /*  CPU_PPC_H  */  #endif  /*  CPU_PPC_H  */

Legend:
Removed from v.24  
changed lines
  Added in v.35

  ViewVC Help
Powered by ViewVC 1.1.26