For instance, if you want to add a new cup model called `Plop`, create two files
cpu_plop.hpp and cpu_plop_cpp which contains classes CpuPlopModel, CpuPlop and
CpuPlopAction implementing respectively the interfaces CpuModel, Cpu and
-CpuAction. You also need to define a initializing function like this:
+CpuAction. You also need to define an initializing function like this:
~~~~
void surf_cpu_model_init_plop()
Helper functions to get and set simcall arguments and results
- popping_bodies.cpp:
The BODY function of each simcall
-- popping_enum.h:
- Definition of type `enum e_smx_simcall_t` (one value per existing simcall)
+- popping_enum.hpp:
+ Definition of type `enum class Simcall` (one value per existing simcall)
- popping_generated.cpp:
Definitions of `simcall_names[]` (debug name of each simcall), and
- SIMIX_simcall_enter() that deals with the simcall from within the kernel
+ ActorImpl::simcall_handle() that deals with the simcall from within the kernel
The simcall.in file list all the simcalls in sections. A line starting by "##"
define a new section which will be replace by a "ifdef" in the generated code.
You should not do something like that. Please work instead to make XML
avoidable, ie to make the C++ interface nice and usable.
-*/
\ No newline at end of file
+*/