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

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

revision 43 by dpavlin, Mon Oct 8 16:22:32 2007 UTC revision 44 by dpavlin, Mon Oct 8 16:22:56 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: machine_test.c,v 1.38 2007/06/15 18:08:10 debug Exp $   *  $Id: machine_test.c,v 1.40 2007/08/29 20:36:49 debug Exp $
29   *   *
30   *  COMMENT: Various test machines   *  COMMENT: Various test machines
31   *   *
# Line 83  static void default_test(struct machine Line 83  static void default_test(struct machine
83          /*          /*
84           *  First add the interrupt controller. Most processor architectures           *  First add the interrupt controller. Most processor architectures
85           *  in GXemul have only 1 interrupt pin on the CPU, and it is simply           *  in GXemul have only 1 interrupt pin on the CPU, and it is simply
86           *  called "emul[x].machine[y].cpu[z]".           *  called "machine[y].cpu[z]".
87           *           *
88           *  MIPS is an exception, dealt with in a separate setup function.           *  MIPS is an exception, dealt with in a separate setup function.
89           *  ARM and SH are dealt with here.           *  ARM and SH are dealt with here.
# Line 242  MACHINE_REGISTER(testarm) Line 242  MACHINE_REGISTER(testarm)
242    
243    
244    
245    MACHINE_SETUP(barem32r)
246    {
247            machine->machine_name = "Generic \"bare\" M32R machine";
248    }
249    
250    
251    MACHINE_SETUP(testm32r)
252    {
253            machine->machine_name = "M32R test machine";
254    
255            default_test(machine, cpu);
256    }
257    
258    
259    MACHINE_DEFAULT_CPU(barem32r)
260    {
261            machine->cpu_name = strdup("M32R");
262    }
263    
264    
265    MACHINE_DEFAULT_CPU(testm32r)
266    {
267            machine->cpu_name = strdup("M32R");
268    }
269    
270    
271    MACHINE_REGISTER(barem32r)
272    {
273            MR_DEFAULT(barem32r, "Generic \"bare\" M32R machine",
274                ARCH_M32R, MACHINE_BAREM32R);
275    
276            machine_entry_add_alias(me, "barem32r");
277    }
278    
279    
280    MACHINE_REGISTER(testm32r)
281    {
282            MR_DEFAULT(testm32r, "Test-machine for M32R",
283                ARCH_M32R, MACHINE_TESTM32R);
284    
285            machine_entry_add_alias(me, "testm32r");
286    }
287    
288    
289  MACHINE_SETUP(barem88k)  MACHINE_SETUP(barem88k)
290  {  {
291          machine->machine_name = "Generic \"bare\" M88K machine";          machine->machine_name = "Generic \"bare\" M88K machine";

Legend:
Removed from v.43  
changed lines
  Added in v.44

  ViewVC Help
Powered by ViewVC 1.1.26