hw/block/pflash_cfi02: Hold the PRI table offset in a variable
commitd6874c8391f733d86f0ae85cc564109d7f01691d
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Sat, 18 May 2019 18:00:36 +0000 (18 20:00 +0200)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 2 Jul 2019 00:31:13 +0000 (2 02:31 +0200)
treec0e27ecc2eefe5ef9ab17d88cafcff5eb4f304d5
parent9ac45b886ac36937ff0969d63c5b819b4efaa337
hw/block/pflash_cfi02: Hold the PRI table offset in a variable

Manufacturers are allowed to move the PRI table, this is why the
offset is queryable via fixed offsets 0x15/0x16.
Add a variable to hold the offset, so it will be easier to later
move the PRI table.

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20190627202719.17739-17-philmd@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
hw/block/pflash_cfi02.c