Fix panic in builds with no device
am: 20e1365e61
Change-Id: I401d080aaf27ed598c44628edcd7d249a0298a82
This commit is contained in:
commit
414e59cb8b
1 changed files with 5 additions and 1 deletions
|
@ -466,7 +466,11 @@ func (c *config) LibartImgHostBaseAddress() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *config) LibartImgDeviceBaseAddress() 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:
|
default:
|
||||||
return "0x70000000"
|
return "0x70000000"
|
||||||
case Mips, Mips64:
|
case Mips, Mips64:
|
||||||
|
|
Loading…
Reference in a new issue