Commit 54eb55be authored by Committed by Alessandro Rubini
arch-sim: new inline functions to select instances
pp_sim_get_master(ppg) always returns a pointer to master pp_instance. pp_sim_get_slave(ppg) always returns a pointer to slave pp_instance. pp_sim_is_master(ppi) and pp_sim_is_slave(ppi) are test for obvious conditions. these last two can be used only if ppi->glbs != NULL, so only if a ppi has been fully initialized.
Showing with 20 additions and 0 deletions