111290Sgabor.dozsa@arm.com/*
211290Sgabor.dozsa@arm.com * Copyright (c) 2015 ARM Limited
311290Sgabor.dozsa@arm.com * All rights reserved
411290Sgabor.dozsa@arm.com *
511290Sgabor.dozsa@arm.com * The license below extends only to copyright in the software and shall
611290Sgabor.dozsa@arm.com * not be construed as granting a license to any other intellectual
711290Sgabor.dozsa@arm.com * property including but not limited to intellectual property relating
811290Sgabor.dozsa@arm.com * to a hardware implementation of the functionality of the software
911290Sgabor.dozsa@arm.com * licensed hereunder.  You may use the software subject to the license
1011290Sgabor.dozsa@arm.com * terms below provided that you ensure that this notice is replicated
1111290Sgabor.dozsa@arm.com * unmodified and in its entirety in all distributions of the software,
1211290Sgabor.dozsa@arm.com * modified or unmodified, in source code or in binary form.
1311290Sgabor.dozsa@arm.com *
1411290Sgabor.dozsa@arm.com * Redistribution and use in source and binary forms, with or without
1511290Sgabor.dozsa@arm.com * modification, are permitted provided that the following conditions are
1611290Sgabor.dozsa@arm.com * met: redistributions of source code must retain the above copyright
1711290Sgabor.dozsa@arm.com * notice, this list of conditions and the following disclaimer;
1811290Sgabor.dozsa@arm.com * redistributions in binary form must reproduce the above copyright
1911290Sgabor.dozsa@arm.com * notice, this list of conditions and the following disclaimer in the
2011290Sgabor.dozsa@arm.com * documentation and/or other materials provided with the distribution;
2111290Sgabor.dozsa@arm.com * neither the name of the copyright holders nor the names of its
2211290Sgabor.dozsa@arm.com * contributors may be used to endorse or promote products derived from
2311290Sgabor.dozsa@arm.com * this software without specific prior written permission.
2411290Sgabor.dozsa@arm.com *
2511290Sgabor.dozsa@arm.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2611290Sgabor.dozsa@arm.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
2711290Sgabor.dozsa@arm.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2811290Sgabor.dozsa@arm.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2911290Sgabor.dozsa@arm.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
3011290Sgabor.dozsa@arm.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
3111290Sgabor.dozsa@arm.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
3211290Sgabor.dozsa@arm.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
3311290Sgabor.dozsa@arm.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3411290Sgabor.dozsa@arm.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3511290Sgabor.dozsa@arm.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3611290Sgabor.dozsa@arm.com *
3711290Sgabor.dozsa@arm.com * Authors: Gabor Dozsa
3811290Sgabor.dozsa@arm.com */
3911290Sgabor.dozsa@arm.com
4011290Sgabor.dozsa@arm.com/* @file
4111290Sgabor.dozsa@arm.com * Magic key definitions for the InitParam pseudo inst
4211290Sgabor.dozsa@arm.com */
4311290Sgabor.dozsa@arm.com#ifndef ___SIM_INITPARAM_KEYS_HH__
4411290Sgabor.dozsa@arm.com#define ___SIM_INITPARAM_KEYS_HH__
4511290Sgabor.dozsa@arm.com
4611290Sgabor.dozsa@arm.comnamespace PseudoInst {
4711290Sgabor.dozsa@arm.com/**
4811290Sgabor.dozsa@arm.com * Unique keys to retrieve various params by the initParam pseudo inst.
4911290Sgabor.dozsa@arm.com *
5011290Sgabor.dozsa@arm.com * @note Each key must be shorter than 16 characters (because we use
5111290Sgabor.dozsa@arm.com * two 64-bit registers two pass in the key to the initparam function)
5211290Sgabor.dozsa@arm.com */
5311290Sgabor.dozsa@arm.comstruct InitParamKey
5411290Sgabor.dozsa@arm.com{
5511290Sgabor.dozsa@arm.com    /**
5611290Sgabor.dozsa@arm.com     *  The default key (empty string)
5711290Sgabor.dozsa@arm.com     */
5811290Sgabor.dozsa@arm.com    static constexpr const char *DEFAULT = "";
5911290Sgabor.dozsa@arm.com    /**
6011290Sgabor.dozsa@arm.com     *  Unique key for "rank" param (distributed gem5 runs)
6111290Sgabor.dozsa@arm.com     */
6211290Sgabor.dozsa@arm.com    static constexpr const char *DIST_RANK = "dist-rank";
6311290Sgabor.dozsa@arm.com    /**
6411290Sgabor.dozsa@arm.com     *  Unique key for "size" param (distributed gem5 runs)
6511290Sgabor.dozsa@arm.com     */
6611290Sgabor.dozsa@arm.com    static constexpr const char *DIST_SIZE = "dist-size";
6711290Sgabor.dozsa@arm.com};
6811290Sgabor.dozsa@arm.com} // namespace PseudoInst
6911290Sgabor.dozsa@arm.com
7011290Sgabor.dozsa@arm.com#endif
71