From: Tim 'mithro' Ansell Date: Tue, 19 Apr 2016 05:13:42 +0000 (+1000) Subject: bios: Print CPU architecture on boot. X-Git-Tag: 24jan2021_ls180~1970^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8998ae5c929a2e1793acec59c26399916322b35f;p=litex.git bios: Print CPU architecture on boot. --- 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();