This makes a change to disasm.go so it provides consistent output
with the recent updates to arch/ppc64.
Change-Id: I812e5da2423fd1a84406032fd91ddf9cc86b7c69
Reviewed-on: https://go-review.googlesource.com/c/152761
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
inst, err := ppc64asm.Decode(code, byteOrder)
var text string
size := inst.Len
- if err != nil || size == 0 || inst.Op == 0 {
+ if err != nil || size == 0 {
size = 4
text = "?"
} else {