仿真平台内核初版 -tlib库 包含<sparc arm riscv powerPC>

This commit is contained in:
liuwb
2026-02-07 20:43:43 +08:00
parent de61f9e2b0
commit b3117648be
9748 changed files with 4309137 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
using System;
namespace Antmicro.OptionsParser
{
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = true)]
public class AliasAttribute : Attribute
{
public AliasAttribute(string longName)
{
LongName = longName;
}
// This is needed to enable the reflection api to return all instances of the attribute
public override object TypeId
{
get
{
return this;
}
}
public string LongName { get; private set; }
}
}

View File

@@ -0,0 +1,15 @@
using System;
namespace Antmicro.OptionsParser
{
public class DelimiterAttribute : Attribute
{
public DelimiterAttribute(char delimiter)
{
Delimiter = delimiter;
}
public char Delimiter { get; set; }
}
}

View File

@@ -0,0 +1,16 @@
using System;
namespace Antmicro.OptionsParser
{
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public class DescriptionAttribute : Attribute
{
public DescriptionAttribute(string description)
{
Value = description;
}
public string Value { get; private set; }
}
}

View File

@@ -0,0 +1,9 @@
using System;
namespace Antmicro.OptionsParser
{
public class HideAttribute : Attribute
{
}
}

View File

@@ -0,0 +1,26 @@
using System;
namespace Antmicro.OptionsParser
{
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public class NameAttribute : Attribute
{
public NameAttribute(char shortName) : this (shortName, null)
{
}
public NameAttribute(string longName) : this(Tokenizer.NullCharacter, longName)
{
}
public NameAttribute(char shortName, string longName)
{
ShortName = shortName;
LongName = longName;
}
public char ShortName { get; private set; }
public string LongName { get; private set; }
}
}

View File

@@ -0,0 +1,15 @@
using System;
namespace Antmicro.OptionsParser
{
public class NumberOfElementsAttribute : Attribute
{
public NumberOfElementsAttribute(int max)
{
Max = max;
}
public int Max { get; set; }
}
}

View File

@@ -0,0 +1,16 @@
using System;
namespace Antmicro.OptionsParser
{
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public class PositionalArgumentAttribute : Attribute
{
public PositionalArgumentAttribute(int position)
{
Position = position;
}
public int Position { get; private set; }
}
}