Re: [Qemu-devel] [PATCH v3 6/7] disas: cris: Fix 0 buffer length case

2015-05-28 Thread Edgar E. Iglesias
On Sun, May 24, 2015 at 03:47:19PM -0700, Peter Crosthwaite wrote: > Cris has the complication of variable length instructions and has > a check in place to clamp memory reads in case the disas request > doesn't have enough bytes for the instruction being disas'd. This > breaks down in the case whe

[Qemu-devel] [PATCH v3 6/7] disas: cris: Fix 0 buffer length case

2015-05-24 Thread Peter Crosthwaite
Cris has the complication of variable length instructions and has a check in place to clamp memory reads in case the disas request doesn't have enough bytes for the instruction being disas'd. This breaks down in the case where disassembling for the monitor where the buffer length is defaulted to 0.