From 042772a6bd66cd09add08da40785406e34e92d0a Mon Sep 17 00:00:00 2001 From: Jonathan Neuschäfer Date: Fri, 30 Nov 2018 00:06:51 +0100 Subject: mb/emulation/spike-riscv: Implement mtime_init MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch lets spike boot to "Payload not loaded" again. Because soc/ucb/riscv/ does not represent a real SoC, but is a dummy directory for emulators, and different emulators might have different memory maps, I moved mtime_init to the mainboard-specific directories for Spike and QEMU. Change-Id: I080f7f81df752e25478bd277637bf894bbee4cb2 Signed-off-by: Jonathan Neuschäfer Reviewed-on: https://review.coreboot.org/c/28873 Tested-by: build bot (Jenkins) Reviewed-by: Philipp Hug --- src/soc/ucb/riscv/Makefile.inc | 2 -- src/soc/ucb/riscv/mtime.c | 22 ---------------------- 2 files changed, 24 deletions(-) delete mode 100644 src/soc/ucb/riscv/mtime.c (limited to 'src/soc/ucb') diff --git a/src/soc/ucb/riscv/Makefile.inc b/src/soc/ucb/riscv/Makefile.inc index c96e3637b7..ef03642d89 100644 --- a/src/soc/ucb/riscv/Makefile.inc +++ b/src/soc/ucb/riscv/Makefile.inc @@ -1,13 +1,11 @@ ifeq ($(CONFIG_SOC_UCB_RISCV),y) -bootblock-y += mtime.c bootblock-y += ipi.c romstage-y += cbmem.c romstage-y += ipi.c ramstage-y += cbmem.c -ramstage-y += mtime.c ramstage-y += ipi.c endif diff --git a/src/soc/ucb/riscv/mtime.c b/src/soc/ucb/riscv/mtime.c deleted file mode 100644 index f8c2717563..0000000000 --- a/src/soc/ucb/riscv/mtime.c +++ /dev/null @@ -1,22 +0,0 @@ -/* - * This file is part of the coreboot project. - * - * Copyright (C) 2018 HardenedLinux - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -#include - -/* FIXME: This is an empty implementation, please improve */ -/* This function is used to initialize HLS()->time/HLS()->timecmp */ -void mtime_init(void) -{ -} -- cgit v1.2.3