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

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

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