forked from Imagelibrary/binutils-gdb
sime-base.h: fix typos in STATE_CPU() examples
This commit is contained in:
@@ -44,11 +44,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
};
|
||||
|
||||
struct sim_state {
|
||||
sim_cpu cpu[MAX_NR_PROCESSORS];
|
||||
sim_cpu *cpu[MAX_NR_PROCESSORS];
|
||||
#if (WITH_SMP)
|
||||
#define STATE_CPU(sd,n) (&(sd)->cpu[n])
|
||||
#define STATE_CPU(sd,n) ((sd)->cpu[n])
|
||||
#else
|
||||
#define STATE_CPU(sd,n) (&(sd)->cpu[0])
|
||||
#define STATE_CPU(sd,n) ((sd)->cpu[0])
|
||||
#endif
|
||||
... simulator specific members ...
|
||||
sim_state_base base;
|
||||
|
||||
Reference in New Issue
Block a user