/[qemu]/qemu/hw/sun4u.c
ViewVC logotype

Diff of /qemu/hw/sun4u.c

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

revision 1.3 by bellard, Sun Oct 30 16:58:32 2005 UTC revision 1.4 by bellard, Mon Nov 21 23:29:55 2005 UTC
# Line 235  void qemu_system_powerdown(void) Line 235  void qemu_system_powerdown(void)
235  {  {
236  }  }
237    
238    static void main_cpu_reset(void *opaque)
239    {
240        CPUState *env = opaque;
241        cpu_reset(env);
242    }
243    
244  static const int ide_iobase[2] = { 0x1f0, 0x170 };  static const int ide_iobase[2] = { 0x1f0, 0x170 };
245  static const int ide_iobase2[2] = { 0x3f6, 0x376 };  static const int ide_iobase2[2] = { 0x3f6, 0x376 };
246  static const int ide_irq[2] = { 14, 15 };  static const int ide_irq[2] = { 14, 15 };
# Line 253  static void sun4u_init(int ram_size, int Line 259  static void sun4u_init(int ram_size, int
259               const char *kernel_filename, const char *kernel_cmdline,               const char *kernel_filename, const char *kernel_cmdline,
260               const char *initrd_filename)               const char *initrd_filename)
261  {  {
262        CPUState *env;
263      char buf[1024];      char buf[1024];
264      m48t59_t *nvram;      m48t59_t *nvram;
265      int ret, linux_boot;      int ret, linux_boot;
# Line 262  static void sun4u_init(int ram_size, int Line 269  static void sun4u_init(int ram_size, int
269    
270      linux_boot = (kernel_filename != NULL);      linux_boot = (kernel_filename != NULL);
271    
272        env = cpu_init();
273        register_savevm("cpu", 0, 3, cpu_save, cpu_load, env);
274        qemu_register_reset(main_cpu_reset, env);
275    
276      /* allocate RAM */      /* allocate RAM */
277      cpu_register_physical_memory(0, ram_size, 0);      cpu_register_physical_memory(0, ram_size, 0);
278    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26