summaryrefslogtreecommitdiff
path: root/src/mainboard/emulation/qemu-riscv/mainboard.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2021-02-17 11:18:50 +0200
committerPatrick Georgi <pgeorgi@google.com>2021-02-22 07:39:39 +0000
commitc79fc4737d6970f06467258e02e5690cfce4385e (patch)
tree6515eae7a3817d85c6f013f94bcbaa8cfa434534 /src/mainboard/emulation/qemu-riscv/mainboard.c
parent70243cd801205ee2774c578c270ddcfacf28337a (diff)
mb/emulation: Drop cbmem_recovery(0) call in ramstage
Calling cbmem_recovery(0) late in ramstage would appear to remove all CBMEM entries created so far. Change-Id: I2abb079844c4b41be09354d603ad36e4a56ea2e1 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/50841 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/emulation/qemu-riscv/mainboard.c')
-rw-r--r--src/mainboard/emulation/qemu-riscv/mainboard.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mainboard/emulation/qemu-riscv/mainboard.c b/src/mainboard/emulation/qemu-riscv/mainboard.c
index 4596e121d5..78cbfe2d59 100644
--- a/src/mainboard/emulation/qemu-riscv/mainboard.c
+++ b/src/mainboard/emulation/qemu-riscv/mainboard.c
@@ -2,7 +2,6 @@
#include <console/console.h>
#include <device/device.h>
-#include <cbmem.h>
#include <symbols.h>
#include <ramdetect.h>
@@ -16,8 +15,6 @@ static void mainboard_enable(struct device *dev)
dram_mb_detected = probe_ramsize((uintptr_t)_dram, CONFIG_DRAM_SIZE_MB);
ram_resource(dev, 0, (uintptr_t)_dram / KiB, dram_mb_detected * MiB / KiB);
-
- cbmem_recovery(0);
}
struct chip_operations mainboard_ops = {