Fix panic in builds with no device
am: 20e1365e61
Change-Id: I401d080aaf27ed598c44628edcd7d249a0298a82
This commit is contained in:
@@ -466,7 +466,11 @@ func (c *config) LibartImgHostBaseAddress() string {
|
||||
}
|
||||
|
||||
func (c *config) LibartImgDeviceBaseAddress() string {
|
||||
switch c.Targets[Device][0].Arch.ArchType {
|
||||
archType := Common
|
||||
if len(c.Targets[Device]) > 0 {
|
||||
archType = c.Targets[Device][0].Arch.ArchType
|
||||
}
|
||||
switch archType {
|
||||
default:
|
||||
return "0x70000000"
|
||||
case Mips, Mips64:
|
||||
|
Reference in New Issue
Block a user