From 8998ae5c929a2e1793acec59c26399916322b35f Mon Sep 17 00:00:00 2001 From: Tim 'mithro' Ansell Date: Tue, 19 Apr 2016 15:13:42 +1000 Subject: [PATCH] bios: Print CPU architecture on boot. --- litex/soc/software/bios/main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/litex/soc/software/bios/main.c b/litex/soc/software/bios/main.c index d45ec867..11147f4b 100644 --- a/litex/soc/software/bios/main.c +++ b/litex/soc/software/bios/main.c @@ -548,6 +548,16 @@ int main(int i, char **c) "(c) Copyright 2012-2015 Enjoy-Digital\n" "(c) Copyright 2007-2015 M-Labs Limited\n" "Built "__DATE__" "__TIME__"\n"); +#ifdef __lm32__ + printf("Running on lm32.\n"); +#elif __or1k__ + printf("Running on or1k.\n"); +#elif __riscv__ + printf("Running on riscv.\n"); +#else + printf("Running on unknown architecture.\n"); +#endif + crcbios(); #ifdef CSR_ETHMAC_BASE eth_init(); -- 2.30.2