util: Add a helpful macro for merging two tokens to m5ops.h.
authorGabe Black <gabeblack@google.com>
Fri, 27 Mar 2020 08:46:11 +0000 (01:46 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 28 Apr 2020 01:07:43 +0000 (01:07 +0000)
commit1708a71e5b9234b6d391e8c5084f23bf9579a3dc
tree53e3625020627607a7c29caa259c586eab11d1b4
parent6072c1ad281549d4d18050151ce9d5f674e96889
util: Add a helpful macro for merging two tokens to m5ops.h.

I've needed this type of macro often when writing code which uses the
M5OP_FOREACH macro, and so rather than re-write it each time, lets just
put a version here. This is such a common type of macro to need that
you'd think it would be part of a standard header somewhere, but to my
knowledge it isn't.

Change-Id: I0df0d9d2fd7ce1b9e6c355d6e4db197ccfff7c35
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27239
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
include/gem5/asm/generic/m5ops.h