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

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

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