Files
qemu/hw
Serge Vakulenko ceb0ee147d pic32: use LCG algorithm for generated random index of TLBWR instruction
The LFSR algorithm, used for generating random TLB indexes for TLBWR
instruction, was inclined to produce a degenerate sequence in some cases.
For example, for 16-entry TLB size and Wired=1, it gives: 15, 6, 7, 2,
7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2...
When replaced with LCG algorithm from ISO/IEC 9899 standard, the sequence
looks much better, with about the same computational effort needed.

Signed-off-by: Serge Vakulenko <serge.vakulenko@gmail.com>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Leon Alrae <leon.alrae@imgtec.com>
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
2015-09-18 09:20:48 +01:00
..
2015-07-27 18:11:53 +03:00
2015-09-14 14:39:49 +01:00
2015-09-11 10:45:43 +03:00
2015-09-11 10:45:43 +03:00
2015-09-11 10:45:43 +03:00
2015-09-11 10:45:43 +03:00
2015-09-14 14:39:49 +01:00
2015-09-07 10:39:30 +01:00
2015-09-11 10:45:43 +03:00
2015-09-11 10:45:43 +03:00
2015-09-09 15:34:53 +02:00
2015-09-11 10:45:43 +03:00
2015-09-07 10:39:28 +01:00
2015-09-09 15:34:53 +02:00
2015-09-11 10:45:43 +03:00
2015-09-11 10:21:38 +03:00
2015-09-11 10:45:43 +03:00