microblaze: boot: Use cpu_set_pc()
commit691b9572e337f2d74b4b527c3dc76f542c6a5734
authorPeter Crosthwaite <crosthwaitepeter@gmail.com>
Wed, 24 Jun 2015 03:19:23 +0000 (23 20:19 -0700)
committerAndreas Färber <afaerber@suse.de>
Thu, 9 Jul 2015 13:20:40 +0000 (9 15:20 +0200)
tree52e7627ccb6c265c677b8250c114d5c80b9524cf
parent4df81c6ed1eddcbbb920a977e76f599e05b39b77
microblaze: boot: Use cpu_set_pc()

Use cpu_set_pc() for setting program counters when bootloading. This
removes an instance of system level code having to reach into the CPU
env.

Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
[AF: Avoid duplicated CPU() casts through local variable]
Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/microblaze/boot.c