Change namespace from translation related classes to ChocolArm64.Translation, other minor tweaks
This commit is contained in:
parent
e4baf9970a
commit
9d0e48518e
11 changed files with 13 additions and 8 deletions
|
@ -1,5 +1,6 @@
|
||||||
using ChocolArm64.Memory;
|
using ChocolArm64.Memory;
|
||||||
using ChocolArm64.State;
|
using ChocolArm64.State;
|
||||||
|
using ChocolArm64.Translation;
|
||||||
using System;
|
using System;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
using ChocolArm64.Events;
|
using ChocolArm64.Events;
|
||||||
|
using ChocolArm64.Translation;
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
|
|
|
@ -6,7 +6,7 @@ using System.Collections.ObjectModel;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Reflection.Emit;
|
using System.Reflection.Emit;
|
||||||
|
|
||||||
namespace ChocolArm64
|
namespace ChocolArm64.Translation
|
||||||
{
|
{
|
||||||
class TranslatedSub
|
class TranslatedSub
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
namespace ChocolArm64
|
namespace ChocolArm64.Translation
|
||||||
{
|
{
|
||||||
enum TranslationTier
|
enum TranslationTier
|
||||||
{
|
{
|
|
@ -2,11 +2,10 @@ using ChocolArm64.Decoders;
|
||||||
using ChocolArm64.Events;
|
using ChocolArm64.Events;
|
||||||
using ChocolArm64.Memory;
|
using ChocolArm64.Memory;
|
||||||
using ChocolArm64.State;
|
using ChocolArm64.State;
|
||||||
using ChocolArm64.Translation;
|
|
||||||
using System;
|
using System;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
|
||||||
namespace ChocolArm64
|
namespace ChocolArm64.Translation
|
||||||
{
|
{
|
||||||
public class Translator
|
public class Translator
|
||||||
{
|
{
|
|
@ -4,7 +4,7 @@ using System.Diagnostics;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
|
||||||
namespace ChocolArm64
|
namespace ChocolArm64.Translation
|
||||||
{
|
{
|
||||||
class TranslatorCache
|
class TranslatorCache
|
||||||
{
|
{
|
|
@ -1,10 +1,12 @@
|
||||||
using System.Collections.Concurrent;
|
using System.Collections.Concurrent;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
|
||||||
namespace ChocolArm64
|
namespace ChocolArm64.Translation
|
||||||
{
|
{
|
||||||
class TranslatorQueue
|
class TranslatorQueue
|
||||||
{
|
{
|
||||||
|
//This is the maximum numbers of functions that the queue can hold to be translated.
|
||||||
|
//The value may need some tuning to find the sweet spot.
|
||||||
private const int MaxQueueSize = 1024;
|
private const int MaxQueueSize = 1024;
|
||||||
|
|
||||||
private ConcurrentStack<TranslatorQueueItem>[] _translationQueue;
|
private ConcurrentStack<TranslatorQueueItem>[] _translationQueue;
|
|
@ -1,6 +1,6 @@
|
||||||
using ChocolArm64.State;
|
using ChocolArm64.State;
|
||||||
|
|
||||||
namespace ChocolArm64
|
namespace ChocolArm64.Translation
|
||||||
{
|
{
|
||||||
struct TranslatorQueueItem
|
struct TranslatorQueueItem
|
||||||
{
|
{
|
|
@ -100,7 +100,7 @@ namespace Ryujinx.Graphics.Graphics3d
|
||||||
SetCullFace(State);
|
SetCullFace(State);
|
||||||
SetDepth(State);
|
SetDepth(State);
|
||||||
SetStencil(State);
|
SetStencil(State);
|
||||||
//SetScissor(State);
|
SetScissor(State);
|
||||||
SetBlending(State);
|
SetBlending(State);
|
||||||
SetColorMask(State);
|
SetColorMask(State);
|
||||||
SetPrimitiveRestart(State);
|
SetPrimitiveRestart(State);
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
using ChocolArm64;
|
using ChocolArm64;
|
||||||
using ChocolArm64.Events;
|
using ChocolArm64.Events;
|
||||||
using ChocolArm64.Memory;
|
using ChocolArm64.Memory;
|
||||||
|
using ChocolArm64.Translation;
|
||||||
using Ryujinx.Common;
|
using Ryujinx.Common;
|
||||||
using Ryujinx.Common.Logging;
|
using Ryujinx.Common.Logging;
|
||||||
using Ryujinx.HLE.Exceptions;
|
using Ryujinx.HLE.Exceptions;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
using ChocolArm64;
|
using ChocolArm64;
|
||||||
using ChocolArm64.Memory;
|
using ChocolArm64.Memory;
|
||||||
using ChocolArm64.State;
|
using ChocolArm64.State;
|
||||||
|
using ChocolArm64.Translation;
|
||||||
|
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue