riscv: Generalize CPU init routine for the base CPU
commite7b5dfd34f296db56aa5de31d1cf64dbe82674a3
authorBin Meng <bin.meng@windriver.com>
Thu, 11 Jun 2020 01:08:46 +0000 (10 18:08 -0700)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 19 Jun 2020 15:24:07 +0000 (19 08:24 -0700)
tree3b1c1cafe949775950b2da257ce08680cc4c76e2
parent5a842062b9d0ffc27ebfc6d4ce0a80a95c6055b1
riscv: Generalize CPU init routine for the base CPU

There is no need to have two functions that have exactly the same
codes for 32-bit and 64-bit base CPUs.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 1591837729-27486-1-git-send-email-bmeng.cn@gmail.com
Message-Id: <1591837729-27486-1-git-send-email-bmeng.cn@gmail.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/cpu.c