Revision 9fddaa0c hw/ppc_prep.c

b/hw/ppc_prep.c
24 24
#include "vl.h"
25 25
#include "m48t59.h"
26 26

  
27
/* XXX: move all TB related stuff in ppc_prep.c and suppress ppc.c ? */
28
ppc_tb_t *cpu_ppc_tb_init (CPUPPCState *env, uint32_t freq);
29

  
27 30
//#define HARD_DEBUG_PPC_IO
28 31
//#define DEBUG_PPC_IO
29 32

  
......
663 666
static void VGA_init (void)
664 667
{
665 668
    /* Basic VGA init, inspired by plex86 VGAbios */
666
    printf("Init VGA...\n");
667 669
#if 1
668 670
    /* switch to color mode and enable CPU access 480 lines */
669 671
    PPC_io_writeb(PPC_IO_BASE + 0x3C2, 0xC3);
......
725 727
     * if a decrementer exception is pending when it enables msr_ee,
726 728
     * it's not ready to handle it...
727 729
     */
728
    env->decr = 0xFFFFFFFF;
729 730
    p = phys_ram_base + kernel_addr;
730 731
#if !defined (USE_OPEN_FIRMWARE)
731 732
    /* Let's register the whole memory available only in supervisor mode */
......
948 949
	}
949 950
    }
950 951

  
952
    cpu_ppc_tb_init(cpu_single_env, 100UL * 1000UL * 1000UL);
953

  
951 954
    /* init basic PC hardware */
952 955
    vga_initialize(ds, phys_ram_base + ram_size, ram_size, 
953 956
                   vga_ram_size, 0);

Also available in: Unified diff