/[gxemul]/trunk/src/cpus/cpu_ia64.c
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 /trunk/src/cpus/cpu_ia64.c

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

revision 31 by dpavlin, Mon Oct 8 16:20:26 2007 UTC revision 32 by dpavlin, Mon Oct 8 16:20:58 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: cpu_ia64.c,v 1.13 2006/07/16 13:32:26 debug Exp $   *  $Id: cpu_ia64.c,v 1.14 2006/09/19 10:50:08 debug Exp $
29   *   *
30   *  IA64 CPU emulation.   *  IA64 CPU emulation.
31   *   *
# Line 41  Line 41 
41  #include "machine.h"  #include "machine.h"
42  #include "memory.h"  #include "memory.h"
43  #include "misc.h"  #include "misc.h"
44    #include "settings.h"
45  #include "symbol.h"  #include "symbol.h"
46    
47  #include "tmp_ia64_head.c"  #include "tmp_ia64_head.c"
# Line 71  int ia64_cpu_new(struct cpu *cpu, struct Line 72  int ia64_cpu_new(struct cpu *cpu, struct
72                  debug("%s", cpu->name);                  debug("%s", cpu->name);
73          }          }
74    
75            /*  Add all register names to the settings:  */
76            CPU_SETTINGS_ADD_REGISTER64("pc", cpu->pc);
77    
78          return 1;          return 1;
79  }  }
80    
# Line 98  void ia64_cpu_list_available_types(void) Line 102  void ia64_cpu_list_available_types(void)
102  }  }
103    
104    
 /*  
  *  ia64_cpu_register_match():  
  */  
 void ia64_cpu_register_match(struct machine *m, char *name,  
         int writeflag, uint64_t *valuep, int *match_register)  
 {  
         int cpunr = 0;  
   
         /*  CPU number:  */  
   
         /*  TODO  */  
   
         if (strcasecmp(name, "pc") == 0) {  
                 if (writeflag) {  
                         m->cpus[cpunr]->pc = *valuep;  
                 } else  
                         *valuep = m->cpus[cpunr]->pc;  
                 *match_register = 1;  
         }  
   
         /*  TODO  */  
 }  
   
   
105  /*  /*
106   *  ia64_cpu_register_dump():   *  ia64_cpu_register_dump():
107   *     *  

Legend:
Removed from v.31  
changed lines
  Added in v.32

  ViewVC Help
Powered by ViewVC 1.1.26