aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/emulation/qemu-i440fx
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/emulation/qemu-i440fx')
-rw-r--r--src/mainboard/emulation/qemu-i440fx/memory.c6
-rw-r--r--src/mainboard/emulation/qemu-i440fx/romstage.c23
2 files changed, 7 insertions, 22 deletions
diff --git a/src/mainboard/emulation/qemu-i440fx/memory.c b/src/mainboard/emulation/qemu-i440fx/memory.c
index aa1ceba410..8209379bef 100644
--- a/src/mainboard/emulation/qemu-i440fx/memory.c
+++ b/src/mainboard/emulation/qemu-i440fx/memory.c
@@ -15,6 +15,7 @@
#include <cbmem.h>
#include <arch/io.h>
+#include <arch/romstage.h>
#include "memory.h"
#include "fw_cfg.h"
@@ -61,3 +62,8 @@ void *cbmem_top(void)
return (void *)top;
}
+
+/* Nothing to do, MTRRs are no-op on QEMU. */
+void fill_postcar_frame(struct postcar_frame *pcf)
+{
+}
diff --git a/src/mainboard/emulation/qemu-i440fx/romstage.c b/src/mainboard/emulation/qemu-i440fx/romstage.c
index 32eab3de3a..8e5691fc71 100644
--- a/src/mainboard/emulation/qemu-i440fx/romstage.c
+++ b/src/mainboard/emulation/qemu-i440fx/romstage.c
@@ -14,31 +14,10 @@
* GNU General Public License for more details.
*/
-#include <arch/cpu.h>
#include <arch/romstage.h>
-#include <stdint.h>
#include <cbmem.h>
-#include <console/console.h>
-#include <timestamp.h>
-#include <program_loading.h>
-asmlinkage void car_stage_entry(void)
+void mainboard_romstage_entry(void)
{
- struct postcar_frame pcf;
-
- console_init();
-
cbmem_recovery(0);
-
- timestamp_add_now(TS_START_ROMSTAGE);
-
- if (postcar_frame_init(&pcf, 0))
- die("Unable to initialize postcar frame.\n");
-
- /**
- * Run postcar to tear down CAR and load relocatable ramstage.
- * There's no CAR on qemu, but for educational purposes and
- * testing the postcar stage is used on qemu, too.
- */
- run_postcar_phase(&pcf);
}