niagara.c (7e0019a7196ebed177c95824875cf852e1a6f667) | niagara.c (9bca0edb282de0007a4f068d9d20f3e3c3aadef7) |
---|---|
1/* 2 * QEMU Sun4v/Niagara System Emulator 3 * 4 * Copyright (c) 2016 Artyom Tarasenko 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 142 unchanged lines hidden (view full) --- 151 dinfo->is_default = 1; 152 rom_add_file_fixed(blk_bs(blk)->filename, NIAGARA_VDISK_BASE, -1); 153 } else { 154 error_report("could not load ram disk '%s'", 155 blk_bs(blk)->filename); 156 exit(1); 157 } 158 } | 1/* 2 * QEMU Sun4v/Niagara System Emulator 3 * 4 * Copyright (c) 2016 Artyom Tarasenko 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 142 unchanged lines hidden (view full) --- 151 dinfo->is_default = 1; 152 rom_add_file_fixed(blk_bs(blk)->filename, NIAGARA_VDISK_BASE, -1); 153 } else { 154 error_report("could not load ram disk '%s'", 155 blk_bs(blk)->filename); 156 exit(1); 157 } 158 } |
159 if (serial_hds[0]) { | 159 if (serial_hd(0)) { |
160 serial_mm_init(sysmem, NIAGARA_UART_BASE, 0, NULL, 115200, | 160 serial_mm_init(sysmem, NIAGARA_UART_BASE, 0, NULL, 115200, |
161 serial_hds[0], DEVICE_BIG_ENDIAN); | 161 serial_hd(0), DEVICE_BIG_ENDIAN); |
162 } 163 empty_slot_init(NIAGARA_IOBBASE, NIAGARA_IOBSIZE); 164 sun4v_rtc_init(NIAGARA_RTC_BASE); 165} 166 167static void niagara_class_init(ObjectClass *oc, void *data) 168{ 169 MachineClass *mc = MACHINE_CLASS(oc); --- 20 unchanged lines hidden --- | 162 } 163 empty_slot_init(NIAGARA_IOBBASE, NIAGARA_IOBSIZE); 164 sun4v_rtc_init(NIAGARA_RTC_BASE); 165} 166 167static void niagara_class_init(ObjectClass *oc, void *data) 168{ 169 MachineClass *mc = MACHINE_CLASS(oc); --- 20 unchanged lines hidden --- |