/[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 27 by dpavlin, Mon Oct 8 16:20:10 2007 UTC revision 28 by dpavlin, Mon Oct 8 16:20:26 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: machine_test.c,v 1.14 2006/06/24 10:19:19 debug Exp $   *  $Id: machine_test.c,v 1.17 2006/07/20 21:53:00 debug Exp $
29   *   *
30   *  Various "test" machines (bare machines with just a CPU, or a bare machine   *  Various "test" machines (bare machines with just a CPU, or a bare machine
31   *  plus some experimental devices).   *  plus some experimental devices).
# Line 60  static void default_test(struct machine Line 60  static void default_test(struct machine
60              (uint64_t) DEV_MP_ADDRESS);              (uint64_t) DEV_MP_ADDRESS);
61          device_add(machine, tmpstr);          device_add(machine, tmpstr);
62    
63          dev_fb_init(machine, machine->memory, DEV_FB_ADDRESS, VFB_GENERIC,          snprintf(tmpstr, sizeof(tmpstr), "fbctrl addr=0x%"PRIx64,
64              640,480, 640,480, 24, "generic");              (uint64_t) DEV_FBCTRL_ADDRESS);
65            device_add(machine, tmpstr);
66    
67          snprintf(tmpstr, sizeof(tmpstr), "disk addr=0x%"PRIx64,          snprintf(tmpstr, sizeof(tmpstr), "disk addr=0x%"PRIx64,
68              (uint64_t) DEV_DISK_ADDRESS);              (uint64_t) DEV_DISK_ADDRESS);
# Line 409  MACHINE_SETUP(testmips) Line 410  MACHINE_SETUP(testmips)
410              (uint64_t) DEV_MP_ADDRESS);              (uint64_t) DEV_MP_ADDRESS);
411          device_add(machine, tmpstr);          device_add(machine, tmpstr);
412    
413          dev_fb_init(machine, machine->memory, DEV_FB_ADDRESS, VFB_GENERIC,          snprintf(tmpstr, sizeof(tmpstr), "fbctrl addr=0x%"PRIx64,
414              640,480, 640,480, 24, "testmips generic");              (uint64_t) DEV_FBCTRL_ADDRESS);
415            device_add(machine, tmpstr);
416    
417          snprintf(tmpstr, sizeof(tmpstr), "disk addr=0x%"PRIx64,          snprintf(tmpstr, sizeof(tmpstr), "disk addr=0x%"PRIx64,
418              (uint64_t) DEV_DISK_ADDRESS);              (uint64_t) DEV_DISK_ADDRESS);
# Line 593  MACHINE_REGISTER(testsparc) Line 595  MACHINE_REGISTER(testsparc)
595          machine_entry_add_alias(me, "testsparc");          machine_entry_add_alias(me, "testsparc");
596  }  }
597    
598    
599    MACHINE_SETUP(baretransputer)
600    {
601            machine->machine_name = "Generic \"bare\" Transputer machine";
602            machine->stable = 1;
603    }
604    
605    
606    MACHINE_DEFAULT_CPU(baretransputer)
607    {
608            machine->cpu_name = strdup("T800");
609    }
610    
611    
612    MACHINE_REGISTER(baretransputer)
613    {
614            MR_DEFAULT(baretransputer, "Generic \"bare\" Transputer machine",
615                ARCH_TRANSPUTER, MACHINE_BARETRANSPUTER);
616    
617            machine_entry_add_alias(me, "baretransputer");
618    }
619    

Legend:
Removed from v.27  
changed lines
  Added in v.28

  ViewVC Help
Powered by ViewVC 1.1.26