diff options
| author | Leon Alrae | 2016-03-25 14:49:33 +0100 |
|---|---|---|
| committer | Leon Alrae | 2016-03-30 10:14:00 +0200 |
| commit | 40dc9dc3394d2796341aeda6cd14bac46ce24735 (patch) | |
| tree | f241256481fd9737a838498f4b6c7c46bdbf932b /module-common.c | |
| parent | hw/mips: implement ITC Storage - Empty/Full Sync and Try Views (diff) | |
| download | qemu-40dc9dc3394d2796341aeda6cd14bac46ce24735.tar.gz qemu-40dc9dc3394d2796341aeda6cd14bac46ce24735.tar.xz qemu-40dc9dc3394d2796341aeda6cd14bac46ce24735.zip | |
hw/mips: implement ITC Storage - P/V Sync and Try Views
P/V Synchronized and Try Views can be used to access Semaphore cells.
Load returns current value and post-decrements the value in the cell
(until it reaches zero). Stores increment the value (until it saturates
at 0xFFFF).
P/V Synchronized View causes the issuing thread to block on read if value
is 0. P/V Try View does not block the thread, it returns 0 in this case.
Cell's Empty and Full bits are not modified.
Trap bit (i.e. Gating Storage exceptions) not implemented.
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Diffstat (limited to 'module-common.c')
0 files changed, 0 insertions, 0 deletions
