Commit 44e73697 authored by Pietro Fezzardi's avatar Pietro Fezzardi Committed by Alessandro Rubini

arch-sim: new prototype for global arch_data

For now it's the same as arch-unix but it will change
when we will add more configuration parameters for the
simulator. So it's better to change its name, from the
beginning
parent 8d898988
......@@ -5,13 +5,18 @@
*/
/*
* These are the functions provided by the various sim files
* This structure holds the lowest timeout of all the state machines in the
* ppg, namely the master and slave state machines in the simulator. All the
* future configuration parameters needed from both master and slave ppi
* can be added here.
*/
/* the arch_data is the same as unix */
#define POSIX_ARCH(ppg) ((struct unix_arch_data *)(ppg->arch_data))
struct unix_arch_data {
struct sim_ppg_arch_data {
struct timeval tv;
};
static inline struct sim_ppg_arch_data *SIM_PPG_ARCH(struct pp_globals *ppg)
{
return (struct sim_ppg_arch_data *)(ppg->arch_data);
}
extern void sim_main_loop(struct pp_globals *ppg);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment