]> git.proxmox.com Git - mirror_qemu.git/commit
hw/block/pflash_cfi02: Add helpers to manipulate the status bits
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Wed, 1 May 2019 16:14:25 +0000 (18:14 +0200)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 2 Jul 2019 00:31:13 +0000 (02:31 +0200)
commit1d311e738b223452bbfb8ce10cc3327db7bca3ee
tree3c1497378459ff41a097d0a6716cd4e2ad1151d1
parentaeaf6c20dbcfed5c459d9f6b39cb5fa2187f0b29
hw/block/pflash_cfi02: Add helpers to manipulate the status bits

Pull out all of the code to modify the status into simple helper
functions. Status handling becomes more complex once multiple
chips are interleaved to produce a single device.

No change in functionality is intended with this commit.

Signed-off-by: Stephen Checkoway <stephen.checkoway@oberlin.edu>
Message-Id: <20190426162624.55977-3-stephen.checkoway@oberlin.edu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
[PMD: Extracted from bigger patch]
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
hw/block/pflash_cfi02.c