-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARC: Accommodate AUX register accessors of MetaWare's ccac compiler
ARC proprietary MetaWare ccac compiler uses its own built-ins, and so we need to respect them. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
- Loading branch information
Showing
5 changed files
with
48 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* arc-specific.h -- provide ARC-specific definitions | ||
* | ||
* Copyright (c) 2023 Synopsys Inc. | ||
* | ||
* The authors hereby grant permission to use, copy, modify, distribute, | ||
* and license this software and its documentation for any purpose, provided | ||
* that existing copyright notices are retained in all copies and that this | ||
* notice is included verbatim in any distributions. No written agreement, | ||
* license, or royalty fee is required for any of the authorized uses. | ||
* Modifications to this software may be copyrighted by their authors | ||
* and need not follow the licensing terms described here, provided that | ||
* the new terms are clearly indicated on the first page of each file where | ||
* they apply. | ||
* | ||
*/ | ||
|
||
#ifndef _ARC_SPECIFIC_H | ||
#define _ARC_SPECIFIC_H | ||
|
||
#ifdef __CCAC__ | ||
#define read_aux_reg(r) _lr(r) | ||
#define write_aux_reg(r, v) _sr((unsigned int)(v), r) | ||
#else | ||
#define read_aux_reg(r) __builtin_arc_lr(r) | ||
/* gcc builtin sr needs reg param to be long immediate */ | ||
#define write_aux_reg(r, v) __builtin_arc_sr((unsigned int)(v), r) | ||
#endif | ||
|
||
#endif /* _ARC_SPECIFIC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters