Version 2 with changes according to review by Peter plus some new patches added. Still need to verify overlap checks so likely will be another version but sending it now if additional comments come up.
Regards, BALATON Zoltan BALATON Zoltan (8): sm501: Fix bounds checks sm501: Drop unneded variable sm501: Ignore no-op blits sm501: Introduce variable for commonly used value for better readability sm501: Optimise 1 pixel 2d ops sm501: Use stn_he_p/ldn_he_p instead of switch/case sm501: Do not allow guest to set invalid format sm501: Convert debug printfs to traces hw/display/sm501.c | 133 ++++++++++++++++++---------------------- hw/display/trace-events | 12 ++++ 2 files changed, 72 insertions(+), 73 deletions(-) -- 2.21.3