Q800 pull request 20231106
macfb: A/UX fixes for colour LUT -----BEGIN PGP SIGNATURE----- iQJGBAABCAAwFiEEzS913cjjpNwuT1Fz8ww4vT8vvjwFAmVIoJQSHGxhdXJlbnRA dml2aWVyLmV1AAoJEPMMOL0/L748uo0QALGBJCmFWVf/zMdRERqFWXERdZ/dw6H5 kDN+EIYzzjCVWRK2YFAoihmiMIVQf7IS8j/ViuChWdvvVaWriOnt2yxB8UTCFaME 4ZoZKu8wCmsENKtAgdU0hORYUr5sVgYlw4Umu+Jxt62UbH2gpm3Ykyxek2Q0B3OA rs8L0Z8YjGALxB8Mf4i/YBREyP+sJDnif2d6wycVf+AXDKBEC7aplKUzYukSd9r5 05VZ1hpamef6uQb7oO9O/dq2mk6+FZSw3mkR1bX8aXQf8UAjmm5Q48bKWW/b+frn kFWwYYy13TgRsvH7B5wNIWzByGwNxdvIfAwycqPrwxXyNeAhidwGHX8U4SR69IGj ayPlIvJ3kBiUyOT49eVAKE2bnO4+MjKzoMehvgfMTRAwrlp/6lIAWnealUAnzKYZ k1DvQgZSbF0dgpyj2iiRMJik3gesJyn1YMwwHMJCmmh9PkXqfqp76CTbUzjWU7RF 77sXgYwMAvEHUeFhjbh0/BqRlggYf+vX6IUUFjDaU2R8Nb8iMrzM4p/27EghRJ7U gW33Z8t8w+TXlUCoHe1ssG0Dx78j1oyKuO9M8LkeHXUXlN2GZAFimCJ6GHfwpoEx +QFhFrwE8dBmsRjoRd+JrqxbnJe4LevvUuku5P4Un/TLYJW/XcKs/A1hlj1aL1Pa U638/cSVdfhs =F4bR -----END PGP SIGNATURE----- Merge tag 'q800-for-8.2-pull-request' of https://github.com/vivier/qemu-m68k into staging Q800 pull request 20231106 macfb: A/UX fixes for colour LUT # -----BEGIN PGP SIGNATURE----- # # iQJGBAABCAAwFiEEzS913cjjpNwuT1Fz8ww4vT8vvjwFAmVIoJQSHGxhdXJlbnRA # dml2aWVyLmV1AAoJEPMMOL0/L748uo0QALGBJCmFWVf/zMdRERqFWXERdZ/dw6H5 # kDN+EIYzzjCVWRK2YFAoihmiMIVQf7IS8j/ViuChWdvvVaWriOnt2yxB8UTCFaME # 4ZoZKu8wCmsENKtAgdU0hORYUr5sVgYlw4Umu+Jxt62UbH2gpm3Ykyxek2Q0B3OA # rs8L0Z8YjGALxB8Mf4i/YBREyP+sJDnif2d6wycVf+AXDKBEC7aplKUzYukSd9r5 # 05VZ1hpamef6uQb7oO9O/dq2mk6+FZSw3mkR1bX8aXQf8UAjmm5Q48bKWW/b+frn # kFWwYYy13TgRsvH7B5wNIWzByGwNxdvIfAwycqPrwxXyNeAhidwGHX8U4SR69IGj # ayPlIvJ3kBiUyOT49eVAKE2bnO4+MjKzoMehvgfMTRAwrlp/6lIAWnealUAnzKYZ # k1DvQgZSbF0dgpyj2iiRMJik3gesJyn1YMwwHMJCmmh9PkXqfqp76CTbUzjWU7RF # 77sXgYwMAvEHUeFhjbh0/BqRlggYf+vX6IUUFjDaU2R8Nb8iMrzM4p/27EghRJ7U # gW33Z8t8w+TXlUCoHe1ssG0Dx78j1oyKuO9M8LkeHXUXlN2GZAFimCJ6GHfwpoEx # +QFhFrwE8dBmsRjoRd+JrqxbnJe4LevvUuku5P4Un/TLYJW/XcKs/A1hlj1aL1Pa # U638/cSVdfhs # =F4bR # -----END PGP SIGNATURE----- # gpg: Signature made Mon 06 Nov 2023 16:15:16 HKT # gpg: using RSA key CD2F75DDC8E3A4DC2E4F5173F30C38BD3F2FBE3C # gpg: issuer "laurent@vivier.eu" # gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>" [full] # gpg: aka "Laurent Vivier <laurent@vivier.eu>" [full] # gpg: aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>" [full] # Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F 5173 F30C 38BD 3F2F BE3C * tag 'q800-for-8.2-pull-request' of https://github.com/vivier/qemu-m68k: macfb: allow reads from the DAFB_LUT register macfb: allow larger write accesses to the DAFB_LUT register macfb: rename DAFB_RESET to DAFB_LUT_INDEX macfb: don't clear interrupts when writing to DAFB_RESET Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
commit
b8cdbe0e4c
@ -36,8 +36,8 @@
|
||||
#define DAFB_INTR_MASK 0x104
|
||||
#define DAFB_INTR_STAT 0x108
|
||||
#define DAFB_INTR_CLEAR 0x10c
|
||||
#define DAFB_RESET 0x200
|
||||
#define DAFB_LUT 0x213
|
||||
#define DAFB_LUT_INDEX 0x200
|
||||
#define DAFB_LUT 0x210
|
||||
|
||||
#define DAFB_INTR_VBL 0x4
|
||||
|
||||
@ -537,6 +537,11 @@ static uint64_t macfb_ctrl_read(void *opaque,
|
||||
case DAFB_MODE_SENSE:
|
||||
val = macfb_sense_read(s);
|
||||
break;
|
||||
case DAFB_LUT ... DAFB_LUT + 3:
|
||||
val = s->color_palette[s->palette_current];
|
||||
s->palette_current = (s->palette_current + 1) %
|
||||
ARRAY_SIZE(s->color_palette);
|
||||
break;
|
||||
default:
|
||||
if (addr < MACFB_CTRL_TOPADDR) {
|
||||
val = s->regs[addr >> 2];
|
||||
@ -583,13 +588,11 @@ static void macfb_ctrl_write(void *opaque,
|
||||
s->regs[DAFB_INTR_STAT >> 2] &= ~DAFB_INTR_VBL;
|
||||
macfb_update_irq(s);
|
||||
break;
|
||||
case DAFB_RESET:
|
||||
s->palette_current = 0;
|
||||
s->regs[DAFB_INTR_STAT >> 2] &= ~DAFB_INTR_VBL;
|
||||
macfb_update_irq(s);
|
||||
case DAFB_LUT_INDEX:
|
||||
s->palette_current = (val & 0xff) * 3;
|
||||
break;
|
||||
case DAFB_LUT:
|
||||
s->color_palette[s->palette_current] = val;
|
||||
case DAFB_LUT ... DAFB_LUT + 3:
|
||||
s->color_palette[s->palette_current] = val & 0xff;
|
||||
s->palette_current = (s->palette_current + 1) %
|
||||
ARRAY_SIZE(s->color_palette);
|
||||
if (s->palette_current % 3) {
|
||||
|
Loading…
Reference in New Issue
Block a user