RISC-V: Remove identity_translate from load_elf
commitb7938980fbd3209fd94b17c98c54ec044b762417
authorMichael Clark <mjc@sifive.com>
Sat, 3 Mar 2018 22:32:17 +0000 (4 11:32 +1300)
committerMichael Clark <mjc@sifive.com>
Sat, 5 May 2018 22:39:38 +0000 (6 10:39 +1200)
tree36664429900a874f563625421e4234abfdc62d7e
parent6b01e3277e0e189a8f064b94c4f761e4efadd758
RISC-V: Remove identity_translate from load_elf

When load_elf is called with NULL as an argument to the
address translate callback, it does an identity translation.
This commit removes the redundant identity_translate callback.

Cc: Sagar Karandikar <sagark@eecs.berkeley.edu>
Cc: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Signed-off-by: Michael Clark <mjc@sifive.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
hw/riscv/sifive_e.c
hw/riscv/sifive_u.c
hw/riscv/spike.c
hw/riscv/virt.c