This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Make muser-mode the default for LEON3
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Daniel Cederman <cederman at gaisler dot com>
- Cc: gcc-patches at gcc dot gnu dot org, daniel at gaisler dot com, ebotcazou at adacore dot com, Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- Date: Tue, 23 Jun 2015 14:58:07 +0200
- Subject: Re: [PATCH] Make muser-mode the default for LEON3
- Authentication-results: sourceware.org; auth=none
- References: <1435062156-28097-1-git-send-email-cederman at gaisler dot com> <1435062156-28097-2-git-send-email-cederman at gaisler dot com> <20150623123448 dot GP10247 at tucnak dot redhat dot com> <558955AD dot 9020101 at gaisler dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Jun 23, 2015 at 02:48:45PM +0200, Daniel Cederman wrote:
> How does one check if the bit has been explicitly set? It was not obvious to
if (TARGET_USER_MODE_P (target_flags_explicit))
> me, which is why I took a similar approach to a patch I found for another
> CPU target. If it is possible to change the default without adding another
> flag then that is obviously better and I will update my patch.
Or you can just change the default target_flags, supposedly with
TargetVariable
int target_flags = MASK_USER_MODE
in the opt file, there are really many possibilities.
Jakub