Re: [Qemu-devel] [PATCH] hw/misc/tz-mpc: Fix value of BLK_MAX register

2018-12-13 Thread Richard Henderson
On 12/13/18 12:32 PM, Peter Maydell wrote: > In the TZ Memory Protection Controller, the BLK_MAX register is supposed > to return the maximum permitted value of the BLK_IDX register. Our > implementation incorrectly returned max+1 (ie the total number of > valid index values, since BLK_IDX is zero-

[Qemu-devel] [PATCH] hw/misc/tz-mpc: Fix value of BLK_MAX register

2018-12-13 Thread Peter Maydell
In the TZ Memory Protection Controller, the BLK_MAX register is supposed to return the maximum permitted value of the BLK_IDX register. Our implementation incorrectly returned max+1 (ie the total number of valid index values, since BLK_IDX is zero-based). Correct this off-by-one error. Since we co