summaryrefslogtreecommitdiff
path: root/utils/hwstub/lib/hwstub_virtual.cpp
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2016-08-04 17:06:11 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2017-01-24 15:25:14 +0100
commit8fabbb008c1a31c809a3d97f22351f141a2bd02d (patch)
tree6e16386a7348197920a5ce1d99f623d0e10b6c3c /utils/hwstub/lib/hwstub_virtual.cpp
parentd91d9f6851bba401650912c5cabcfe4c5f1150df (diff)
downloadrockbox-8fabbb008c1a31c809a3d97f22351f141a2bd02d.tar.gz
rockbox-8fabbb008c1a31c809a3d97f22351f141a2bd02d.zip
hwstub: add support for coprocessor operations
At the moment the stub only implement them for MIPS. Change-Id: Ica835a0e9c70fa5675c3d655eae986e812a47de8
Diffstat (limited to 'utils/hwstub/lib/hwstub_virtual.cpp')
-rw-r--r--utils/hwstub/lib/hwstub_virtual.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/hwstub/lib/hwstub_virtual.cpp b/utils/hwstub/lib/hwstub_virtual.cpp
index fada56fb83..5c9e79e5a1 100644
--- a/utils/hwstub/lib/hwstub_virtual.cpp
+++ b/utils/hwstub/lib/hwstub_virtual.cpp
@@ -221,6 +221,18 @@ error handle::exec_dev(uint32_t addr, uint16_t flags)
221 return p ? p->exec_dev(addr, flags) : error::DISCONNECTED; 221 return p ? p->exec_dev(addr, flags) : error::DISCONNECTED;
222} 222}
223 223
224error handle::cop_dev(uint8_t op, uint8_t args[HWSTUB_COP_ARGS],
225 const void *out_data, size_t out_size, void *in_data, size_t *in_size)
226{
227 (void) op;
228 (void) args;
229 (void) out_data;
230 (void) out_size;
231 (void) in_data;
232 (void) in_size;
233 return error::UNSUPPORTED;
234}
235
224error handle::status() const 236error handle::status() const
225{ 237{
226 return hwstub::handle::status(); 238 return hwstub::handle::status();