mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
hw: m25p80: allow write_enable latch get/set
The write_enable latch property is not currently exposed. This commit makes it a modifiable property. Signed-off-by: Iris Chen <irischenlj@fb.com> Acked-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Francisco Iglesias <frasse.iglesias@gmail.com> Message-Id: <20220513055022.951759-1-irischenlj@fb.com> Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
264a360ae0
commit
188052a133
5 changed files with 98 additions and 32 deletions
|
@ -783,4 +783,26 @@ QTestState *qtest_inproc_init(QTestState **s, bool log, const char* arch,
|
|||
void (*send)(void*, const char*));
|
||||
|
||||
void qtest_client_inproc_recv(void *opaque, const char *str);
|
||||
|
||||
/**
|
||||
* qtest_qom_set_bool:
|
||||
* @s: QTestState instance to operate on.
|
||||
* @path: Path to the property being set.
|
||||
* @property: Property being set.
|
||||
* @value: Value to set the property.
|
||||
*
|
||||
* Set the property with passed in value.
|
||||
*/
|
||||
void qtest_qom_set_bool(QTestState *s, const char *path, const char *property,
|
||||
bool value);
|
||||
|
||||
/**
|
||||
* qtest_qom_get_bool:
|
||||
* @s: QTestState instance to operate on.
|
||||
* @path: Path to the property being retrieved.
|
||||
* @property: Property from where the value is being retrieved.
|
||||
*
|
||||
* Returns: Value retrieved from property.
|
||||
*/
|
||||
bool qtest_qom_get_bool(QTestState *s, const char *path, const char *property);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue