equal
deleted
inserted
replaced
15 type_synonym mClkSndArgType = "memOp" |
15 type_synonym mClkSndArgType = "memOp" |
16 type_synonym mClkRcvArgType = "rpcOp" |
16 type_synonym mClkRcvArgType = "rpcOp" |
17 |
17 |
18 definition |
18 definition |
19 (* translate a memory call to an RPC call *) |
19 (* translate a memory call to an RPC call *) |
20 MClkRelayArg :: "memOp => rpcOp" |
20 MClkRelayArg :: "memOp \<Rightarrow> rpcOp" |
21 where "MClkRelayArg marg = memcall marg" |
21 where "MClkRelayArg marg = memcall marg" |
22 |
22 |
23 definition |
23 definition |
24 (* translate RPC failures to memory failures *) |
24 (* translate RPC failures to memory failures *) |
25 MClkReplyVal :: "Vals => Vals" |
25 MClkReplyVal :: "Vals \<Rightarrow> Vals" |
26 where "MClkReplyVal v = (if v = RPCFailure then MemFailure else v)" |
26 where "MClkReplyVal v = (if v = RPCFailure then MemFailure else v)" |
27 |
27 |
28 end |
28 end |